answersLogoWhite

0

You'll need to fill in the details, but the following framework will get you started.

class Car

{

private:

class Engine {}; // implementation omitted for brevity

class Wheel {}; // implementation omitted for brevity

Wheel m_front_wheel[2]; // array of two front wheels

Wheel m_rear_wheel[2]; // array of two rear wheels

Engine m_engine; // an engine

};

int main()

{

Car ferrari;

Car BMW;

Car smart_car;

return( 0 );

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Write a program to create a maze?

this is to write or create


Write a program in C to create a Circular Linked list?

#include<iostream.h>


How To write a java program to create three tier applications using servlets?

barsanabegam


How do you create computer games?

You write a program. A computer game is an application program running on one (or rarely more than one) computer. You have to design the game before writing the program.


Where did you can find flute chords?

Sibelius is a program that allows you to transpose music and write your own. I'm sure if you create the roots of chords, you can find some part of the program that will allow you to create a wide range of chords.


Write a program to maintain medical shop in c language?

Ask via an internet search engine; it will find vendors for you.


How do you easily create Excel files in c?

You might be able to use C to extract data from an Excel file, but there is no easy way to write a program to create an Excel file.


How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


Can you create a website without downloading things?

Absolutely. All you actually need is a text editing program to write your code and a server to host it.


How to write program for secant method in mathematica?

How to write a program for secant method by mathematica


How to create a batch file and impliment it?

To create a batch file open notepad, textedit, or whatever editor you wish to use. Once open write your program, check for errors, and "make simple text." Save this program as whateveryouwant.bat. Open the file and the batch file will execute.


How do you write Square program using vb?

write a vb program to find the magic square