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

#include <iostream>
using namespace std;

class Car {

  public:	// visible from any where 
	int CarID;
        char color;
        int Model;

  public:	// visible from anywhere
	void init();
        void display();
};

void Car::init() {
  CarID = 0;
  color = 'W';
  Model = 0;
}

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

int main()
{

 Car car1;
 car1.init(); //initializing the object 
 car1.display();

 cout << "CarID is : " << car1.CarID << " Color is : " << car1.color << " Model is :" << car1.Model << endl;
 
 return 0;
}
