I am not getting the same expected output when I run MyPeopleExampleConstructorSuper2 Am I doing something wrong?
Expected output ---- About to create an object instance of InternationalStudent class... Person: contructor is called Student: contructor is called InternationalStudent: contructor 2 is called internationalStudent1.getName() = Sang Shin internationalStudent1.getAddress() = null internationalStudent1.getGrade() = 4.5 internationalStudent1.getCountry() = Korea My output Person: constructor is called Person: constructor is called Student: constructor is called Person: constructor is called Student: constructor is called InternationalStudent: constructor is called Person: constructor is called Displaying names of all object instances... person1.getName() = Tom Jones student1.getName() = CCR internationalStudent1.getName() = Bill Clinton teacher1.getName() = Beatles Displaying class hierarchy of InternationalStudent Class... mypeopleexample.InternationalStudent class is a child class of mypeopleexample.Student mypeopleexample.Student class is a child class of mypeopleexample.Person mypeopleexample.Person class is a child class of java.lang.Object Kind Regards Anine A. Hartog [email protected]<mailto:[email protected]> [cid:[email protected]] With HOLLARD it's SORTED Direct Tel: 061 371 303 Fax: 061 371 348 International Tel: +264 61 371 300 or 00264 61 371 300 Hollard Insurance Company of Namibia Ltd. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<<inline: image001.jpg>>
