/* Author Name: Baljeet S. Malhotra */
/* Student ID:  XXXXXXXXXXX         */ 
/* Program Name: Car-example4.cpp */
/* Program Description: Example     */
/* Date of creation: 14th Oct. 2004 */
/* Lab section: XX                  */

#include <iostream>
using namespace std;

class Car {

  private:	// visible only inside the class 
	int CarID;
        char color;
        int Model;

  public:	// visible from anywhere
	void init(int tempCarID, char tempcolor, int tempModel);
        void display();
};

void Car::init(int tempCarID, char tempcolor, int tempModel) {
  CarID = tempCarID; 
  color = tempcolor;
  Model = tempModel;
}

void Car::display() {
 cout << "CarID is : " << CarID << " Color is : " << color << " Model is :" << Model << endl; 
}

int main()
{

 Car car1;
 car1.init(100, 'B', 1990); //initializing the object 
 car1.display();
 return 0;
}
