Hi everyone, I wrote a rough draft of a code that is supposed return the type of car you are driving. I kind of got the hang of it but wanted to go ahead in the book that I am reading and implement a virtual function. I read about them but was not sure how I could implement them. I wanted to have it so that after the program looked at all of the data entered..it would then printout the sound that the car was supposed to make (horn function) sportscar would make a "beep" and suv would make a "BEEP"..something like that.
Am i correct in the fact that virtual function is a function that can be accessed and changed by the entire code???
Is what I am trying to do possible or do I need to start over?

Any help would greatly be appreciated
Thanks in advance..especially to SirCrono6, laasunde, and Zach L. for previous help


Code:
#include <iostream.h>


class Vehicle
{
  public:

    Suv();
Sportscar();
virtual horn ();
  private:
    int doors;
    int cylinders;
	int name;
	int color;
	char transmission;
	int a;
	int m;
};


Vehicle::Suv()
{
 cout<<" How many doors does the car have? ";
 cin>>doors;
cout<<" How many cylinders does the car have? ";
cin>>cylinders;
cout<< " What kind of transmission does the car have? ";
cin>> transmission;	
 if (doors>=5 && cylinders>=6 )
	 cout<<" You are driving an SUV"<<endl;
	else
		cout<<" You are driving a sportscar"<<endl;
	if (transmission=='a')
		cout<<"with automatic transmission"<<endl;
	else
		cout<<"with manual transmission"<<endl;
	
 
}

Vehicle::Sportscar()
{
cout<<" How many doors does the second car have? ";
cin>>doors;
cout<<" How many cylinders does the second car have? ";
cin>>cylinders;
cout<< " What kind of transmission does the second car have? ";
cin>> transmission;	
	
	if (doors>=4 && cylinders>=6 )
	 cout<<" Your second car is an SUV"<<endl;
	else
		cout<<" Your second car is a sportscar"<<endl;
	if (transmission=='a')
		cout<<"with automatic transmission<<endl";
	else
		cout<<"with manual transmission"<<endl;
}

int main()
{
	Vehicle c;
	
	c.Suv();
	c.Sportscar();

return 0;
}