Very Basic Vehicle Class, Two Attributes

Hey experts! Could somebody please show me step by step how to create this simple class with two attributes, Speed which is an int data type and turn time which is a double.

If anyone has code for a basic class similar to this with two attributes that includes comments it would help me a lot.

Here is what i have so far (Not a lot ! )

1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
using namespace std;
class Vehicle{
public:
	int SetSpeed; // or should this be "void SetSpeed (int Speed)"
	int SetTurnTime;}
private:
	int theSpeed;
	int theTurnTime;
	
}


As for the header file i have no idea what to put in it
Sounds like a homework problem, and we don't write peoples homework. If you have a specific problem or question we can help, but we aren't writing your code.
Topic archived. No new replies allowed.