Page 13 - Samawat_Arsalan_Hyder_19_arid_855
P. 13
SAMAWAT ARSALAN HYDER 19-ARID-855
cout<<"\nEnter Time Lapse of the Tape: ";
cin>>Time_lapse;
}
void putdata()
{
Sale::putdata();
Publication::putdata();
cout<<"\n"<<Time_lapse;
}
~Tape()
{
cout<<"\nGood Bye...........";
}
};
class Disk: public Publication
{
enum dtype{CD, DVD};
dtype Userchoice;
public:
void getdata()
{
char a;
cout<<"\nEnter c or d for CD and DVD respectively: ";
cin>>a;
if(a=='c')
Userchoice=CD;