Consider the following class HeadQuarter
class Headquarter
int Code;
char Des [2017
protected :
char Address [40];
public:
void Get() {cin>>Code; gets (Des)gets (A.
void Put() {cout<<Code<Des<<Address<<endl;
);
Write a code in C++ to protectedly derive another class FrontOffice
from the base class HeadQuarter with following members.
Data Members
Location of type character of size 10
Budget of type double
Member Functions
A constructor function to assign Budget as 100000
Assign() to allow user to enter Location and Budget
Display() to display Location and Budget
Answers
Answered by
1
Answer:
Headquarter
int Code;
char Des [2017
protected :
char Address [40];
public:
void Get() {cin>>Code; gets (Des)gets (A.
void Put() {cout<<Code<Des<<Address<<endl;
);
Write a code in C++ to protectedly derive another class FrontOffice
from the base class HeadQuarter with following members.
Data Members
Location of type character of size 10
Budget of type double
Member Functions
A constructor function to assign Budget as 100000
Assign() to allow user to enter Location and Budget
Display() to display Location and
Similar questions