Computer Science I for majors by James Tam |
Due Monday Nov 28 at 4 PM
Define two new classes: 'Cat' and 'Dog'. Each class consists of at least one attribute and method (including the constructor). Each class must be defined in a separate file (module). A third module will contain the 'Driver' class where instances of the two classes will be instantiated and various methods and attributes will be accessed. You should have attended the classes where Object-Oriented programming concepts where covered so you are familiar with all the terminology and you have seen the concepts. Ideally you not only worked through the examples yourself but tried to implement them on your own (at least the simple ones) before starting this assignment.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
(The call to the start() function can reside in this file). |