Ask Experts » Computers » Programming »

Design classes in object oriented programming


Date: 16 Jun 2016   Posted By: Daniel Sunday     Group: Computers    Category: Programming   

Design a class 'university'. It has name and place as data members. Their member functions are for printing and getting data members. Derive 'department' class from 'university' class protected. Its data members are department name, no. of students, and number of staff. Member functions are for getting and printing data members. Derive one more class 'staff' from 'department', data members are name of staff, salary, experience (in years) and subject. Another class student is derived from 'department' as 'student'. Data members are name of student, years of course and total marks. These two classes are derived from parent class in private mode. Experts: Can you provide a C++ program for implementing the above scenario.
Awaiting response.


Learning object oriented programming? Want to design a class? Find response from experts on this page.


No responses found. Be the first to answer and make money from our revenue sharing programs.

Post Answer



You must Sign In to post a response.


Post Answer        





Related Questions
  • Return to Question Index
  • Ask Question to Experts


  • Awards & Gifts
    Top Contributors
    TodayLast 7 Daysmore...

     
    ISC Technologies, Kochi - India. © All Rights Reserved.