A good answer might be:Yes. The rim, for instance, is made of yet smaller parts. | |
Class Car
Part of the skill of object oriented programming is in designing the right "software objects" to match the "real world objects" of the problem, and in deciding when to quit. It would (usually) make little sense to continue analyzing the bicycle until you were looking at atoms. On the other hand, sometimes very fine detail is desirable. A good flight simulator program (for example) is realistic because its airplane objects are built up from many small objects. A crude simulation uses fewer objects. Look at the definition for Car from a few chapters ago (a simple program, but good enough for now). | |
QUESTION 2:Click Here after you have answered the question |