Thursday, June 20, 2002 09:26 AM
Create THREE Java classes and an application to demonstrate objects inheritance. You may create any FOUR objects as long as they comply with the following hierarchy :
| main-1 |
Object-1 and object-2 inherit their attributes and methods from subclass-1 while object-3 and object-4 inherit their attributes and methods from subclass-2. Both subclass-1 and subclass-2 are subclasses of superclass-0.
Your classes and objects names should precisely reflect the actual objects. For each subclass or superclass, you should have minimum of 2 attributes and 4 methods that manipulate the two attributes.
You should create all FOUR objects in ONE main program(main-1). You should use all the 12 methods either in your main program or subclasses.
Required to submit
1) Simple UML CLASS design of your objects
Re: can i have the answer for this program ?
Thursday, June 20, 2002 09:36 AM