Q:

Define a class worker with the following specification: Private members of class worker

wname25 characters
hrwrkfloat (hors worked and wagerate per hour
totwagefloat(hrwrk*wgrate)
calcwgA fuction to find hrerk* wgrate with float return type

Public members of class worker

in_data() a function to accept values for wno, wname, hrwrk, wgrate and invoke calcwg() to calculate totwage.
out_data() a function to display all the data members on the screen you should give definations of functions

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.