Undeclared indentifiers

Trying to use multiple classes however when trying to compile it says that i have undeclared indentifiers

heres the code:

#include <iostream>

using namespace std;

#include <iostream>

using namespace std;

class Vehicle
{
public:
void GetMotorVehicle()
{
// Motor vehicle idenifier not found
MotorVehicle();
}

void GetNonMotorVehicle()
{
// Non motor vehicle indentifier not found
NonMotorVehicle();
}
};

class MotorVehicle: public Vehicle
{
public:

void GetMotorVehicles()
{

}
};

class NonMotorVehicle: public Vehicle
{
public:
void GetNonMotorVehicle()
{

}
};

class Train
{
public:
void GetModel()
{
char models[] = "Big" "Medium" "Small";

cout << models << endl;
}

void GetManufacturer()
{
char manufacturer[] = "Virgin" "FirstGreatWestern" "CrossCountry";
cout << manufacturer << endl;
}

void GetYearOfRelease()
{
int x = 2001;
int y = 2003;
int z = 2010;

cout << x << y << z << endl;
}
};

class Car
{
public:
void GetModel()
{
char model[] = "Clio" "TT" "Fiesta";
cout << model << endl;
}

void GetManufacturer()
{
}

void GetYearOfRelease()
{
}
};

class Van
{
public:
int GetModel()
{
}

int GetManufacturer()
{
}

int GetYearOfRelease()
{
}
};

class MotorCycle
{
public:
void GetModel()
{
}

void GetManufacturer()
{
}

void GetYearOfRelease()
{
}
};

class MotorHome
{
public:
void GetModel()
{
}

void GetManufacturer()
{
}

void GetYearOfRelease()
{
}
};

class Bicycle
{
public:
void GetModel()
{
}

void GetManufacturer()
{
}

void GetYearOfRelease()
{
}
};

void main()
{
cout << "Vehicle Inheritance" << endl;

Vehicle v;

v.GetMotorVehicle();
v.GetNonMotorVehicle();

cout << endl;
}
Last edited on
Please copy and paste your compiler error log.
Also, you can edit your post and put your code
[code]
1
2
3
between
//code
"tags"
[/code]
Last edited on
Topic archived. No new replies allowed.