ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Write classes in C++

by | Nov 29, 2023 | questions

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 employee’s getdata member to get the values for name and number and also pudata() to show employee’s 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.

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!