Mirchiss
public cpp v1 · immutable#include <iostream.h>class car {int color;int brand;vroom();private:int engine;};//When you declare car//if you dont use classes you need to declare the variables over again for each type of car you have//and youll need to have somekind of naming system also or use arrays:Pmain(){ //car #1 int acolor; int abrand; vroom(); int aengine; //car #2 ... //with classes car bmw; car citroen;}