Wrtie a C++ Program for Conversion BASIC TO CLASS TYPE : TIME CONVERSION
//Conversion BASIC TO CLASS
//TIME CONVERSION
#include
#include
class time
{
int hrs;
int mins;
public:
time()
{}
time(int t)
{
hrs=t/60;
mins=t%60;
}
void display()
{
cout<<"\nHours = "<
o1=duration; //Invoke the constructor
o1.display();
getch();
}