m09_OOP_aux

m09_OOP_aux - 234122 Advanced C bEgInSlIdE bEgInSlIdE...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Copyright 1995 - 2007 C. Gotsman & Y.M. Kimchi Computer Science Dept. Technion 234122 תמ מ Advanced C Page 1 For personal use only bEgInSlIdE Copyright 1995 - 2007 C. Gotsman & Y.M. Kimchi, Computer Science Dept. Technion Inheritance (example) class crv_obj : public attr_obj { . . . public: crv_obj(); crv_obj( const crv_obj *_obj ); ~crv_obj(); . . . }; class srf_obj : public attr_obj { . . . public: srf_obj(); srf_obj( const srf_obj *_obj ); ~srf_obj(); . . . }; bEgInSlIdE Copyright 1995 - 2007 C. Gotsman & Y.M. Kimchi, Computer Science Dept. Technion Inheritance (cont.) class attr_obj : public list_obj { protected: list_obj *attr; . . . public: attr_obj( size_t s = 0 ); attr_obj( const attr_obj *a, size_t s = 0 ); virtual ~attr_obj(); void set_attr( string_type nm, object_type *ob ); void set_attr( string_type nm, string_type st ); void set_attr( string_type nm, real_type fl ); void set_attr( string_type nm, int in ); . . . }; bEgInSlIdE
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/14/2011 for the course CS 234122 taught by Professor Gillbarequet during the Spring '11 term at Technion.

Ask a homework question - tutors are online