Hi Sang, The home work for the Inheritance course goes like this (in the main):
Create MyOwnAutoShop class which contains the main() method. Perform the following within the main() method. Create an instance of Sedan class and initialize all the fields with appropriate values. Use super(...) method in the constructor for initializing the fields of the super class. Create two instances of the Ford class and initialize all the fields with appropriate values. Use super(...) method in the constructor for initializing the fields of the super class. Create an instance of Car class and and initialize all the fields with appropriate values. My question is about the last line: is there really any interest in instantiating the Car class instead of the class Truck? Best regards Emmanuel -- To post to this group, send email to javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en