Define a class Teacher with the following specification: private members:
name | 20 characters |
subject | 10 characters |
Basic,DA,HRA | float |
salary | float |
Calculate() function computes the salary and returns it. Salary is sum of Basic, DA and HRA
public members:
Readdata() function accepts the data values and invoke the calculate function Displaydata() function prints the data on the screen.
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.