php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pay Less and get solution of Any assimnt 100% guarantee.
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#3
class Transport
{
private:
float Weight,Speed;
string Capacity;
public:
void Load()
{
cout"\nGoods are loaded successfully\n";
}
void Unload()
{
cout"Goods are Unloaded successfully\n";
}
virtual void Ship(){} OR virtual void Ship()=0;

};

class Land_Transport ublic Transport
{
private:
string Transportation_Mode;
string Vehicle_Type;
public:
void Ship()
{
cout"In land transport, shipping is done via Truck";
}
};

class Air_Transport ublic Transport
{
private:
string Aircraft_Type;
string Airline_Name;
public:
void Ship()
{
cout"\nIn air transport, shipping is done via air cargo\n\n";
}
};

int main(int argc, char *argv[])
{
char choice;
while(1)
{
cout"\n\nDo you want to transport your goods? <Press Y for YES, & N for NO>\n\n";
cout"*************************************\n\n";
choice = getch();
if(choice == 'y' || choice == 'Y')
{
Menu();
}
cout"\nThank You for using this Program...";
}

}

void Menu()
{
Transport *ptr=NULL;

char tpt;

cout"Press 'L' or 'l' to use Land Transport Service\n\n";
cout"Press 'A' or 'a' to use Air Transport Service\n";
cout"*************************************\n";
tpt = getche();
if(tpt == 'A' or tpt == 'a')
{
ptr=new Air_Transport();
ptr->Ship();
}

if(tpt == 'L' or tpt == 'l')
{
ptr=new Land_Transport();
ptr->Ship();
}
getch();
}
Reply


Messages In This Thread
Pay Less and get solution of Any assimnt 100% guarantee. - by vuassignments - 07-21-2014, 02:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pay for assignment solution guarantee. Xpert 5 4,364 07-21-2014, 02:25 PM
Last Post: vuassignments

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support