Write a C++ program to implement the following level of inheritance. 1. Write getter/setters, display function, parameterized, default and copy constructor. 2. Write a calculateSalary() function in the Typist class and override the definition in permanent and casual. 3. Write a ‘main’ function and create objects of all classes in main and call the public methods of all classes.

Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter4: Software: Systems And Application Software
Section: Chapter Questions
Problem 7SAT
icon
Related questions
Question

Write a C++ program to implement the following level of inheritance.

1. Write getter/setters, display function, parameterized, default and copy constructor.
2. Write a calculateSalary() function in the Typist class and override the definition in
permanent and casual.
3. Write a ‘main’ function and create objects of all classes in main and call the public
methods of all classes.

Staff
code
Name
Faculty
Officer
Department
Typist
Rank
Subject Taken
Office
Grade
Research Area
Speed
Permanent
Casual
Salary
daily wages
Transcribed Image Text:Staff code Name Faculty Officer Department Typist Rank Subject Taken Office Grade Research Area Speed Permanent Casual Salary daily wages
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning