On Oct 27, 3:48 am, Richard <[EMAIL PROTECTED]> wrote:
> Hi,
> the description for the homework says "The homework is to modify the
> MyOwnAutoShopProject you did as LAB-1023: Java Inheritance homework to
> use Java interface. Here I am going to call the new project
> MyOwnAutoShopUsingInterface.
> * The task you will have to do is something similar to the
> MyOnlineShopUsingInterface project above."
>
> I'm not sure what it is that we are supposed to do.
>
> Can anyone provide some more details?
>
> Thanks!
Richard,
here is what I did.
MyOwnAutoShopProject had 5 classes (Car, Ford, MyOwnAutoShop, Sedan &
Truck). I copied this project to create a new project
MyOwnAutoShopUsingInterface. I created an interface
(CarInterface.java) and changed Car.java to implement CarInterface. I
created another interface (SedanInterface.java) and changed Sedan.java
to implement SedanInterface. I created 2 new classes, FamilySedan
which extends Sedan and SportsSedan which extends Sedan. The details
of the new classes are similar to the Ford, Sedan or Truck classes.
fingAU.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---