This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: final on a method to stop overriding by a child. 11.Show use of final on a class to stop extending. 12.Show use of abstract to stop instantiation of a parent class. 13.Show use of abstract on a method to force child implementation of function. (Implementation may be delayed to lower layers. ..) 14.Show that an object is given the type of all of its parents (why?) and also interfaces it has implemented (or inherited). 15.Show how it is sometimes handy to type an object as a parent type. (calculateAverageBalance()) to avoid overloading the method. 16.Show use of the instanceof operator to test for an object's type. 17.Show use of Generics with Collection Classes to avoid 1) add errors, and 2)casting on reference 18.Discuss why Java has only "single inheritance" whereas C++ allows "multiple inheritance"....
View Full Document
This note was uploaded on 01/25/2010 for the course ECE 309 taught by Professor Bowman during the Spring '09 term at N.C. State.
- Spring '09