Description: First, the purpose of the experiment (1) master the definition of inheritance and derivation, the definition method and inheritance mode of derived classes. (2) master the use of constructors in derived classes. (3) master the concept of multiple inheritance, the definition method, and the sequence of multiple inheritance successor constructors. (4) grasp the concept and definition method of virtual base class. Two. The content of the experiment A base class is defined as name, sex and age; teachers and students are derived from the base class. The class number, job title and salary are added to the class. The student class increases school number, class, specialty and school grade. Students and teachers are derived from the class and teacher class, and the on-the-job postgraduate classes are added to work units. Three. Experimental requirements
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
实验6 | 0 | 2018-04-07
|
实验6\666.cpp | 6787 | 2018-04-07
|
实验6\666.dsp | 3365 | 2018-04-07
|
实验6\666.ncb | 41984 | 2018-04-07
|
实验6\666.opt | 48640 | 2018-04-07
|
实验6\666.plg | 699 | 2018-04-07
|
实验6\Debug | 0 | 2018-04-07
|
实验6\Debug\666.exe | 577611 | 2018-04-07
|
实验6\Debug\666.ilk | 802052 | 2018-04-07
|
实验6\Debug\666.obj | 309900 | 2018-04-07
|
实验6\Debug\666.pch | 2052944 | 2018-04-07
|
实验6\Debug\666.pdb | 1115136 | 2018-04-07
|
实验6\Debug\vc60.idb | 82944 | 2018-04-07
|
实验6\Debug\vc60.pdb | 110592 | 2018-04-07 |