Q:

Define a class Teacher with the following specification: private members:

name20 characters
subject10 characters
Basic,DA,HRAfloat
salaryfloat

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.

CLASSES

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.