Write classes in C++ Research Paper
Write the following classes with the following features 1. Define a class, with 2 private data members, name and number. The name is an array of size 80 characters and use a macro for the size.The variable number is an unsigned long number. Define getdata() and putdata( ) methods. getdata() method gets values from the user. putdata( ) method is a const function and displays the values. 2. Define another class , derived from Employee class. The manager class will have 2 data members, title, an array of 80 characters and use a macro for the size. The other member is dues which is double. Define getdata and putdata methods in manager class to read data from the user and to show the values respectively. (Not the getdata method in manager class uses the employees getdata member to get the values for name and number and also pudata() to show employees members. 3. Define another class scientist derived from employee having one member, publications, an integer. Define getdata and putdata methods in this class also. 4. Define another class, labourer, derived from employee with no members. 5. Write the main program with 2 manager, 1 scientist and 1 labourer objects. Get the values from the users for these 3 objects and show the values.
Is this the question you were looking for? If so, place your order here to get started!