ch10Sections1-5 - 10.10 Exercises, Problems, and Projects...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
10.10.1 Multiple Choice Exercises: 1. a class inheriting from another class 2. false 3. an interface 4. protected and public instance variables and methods 5. implements 6. true 7. You cannot instantiate an object from an abstract class. 8. super 9. It should be the first statement. 10. The class must be declared abstract. 11. This method is not abstract. 10.10.2 Reading and Understanding Code 12. A B C (C inherits from B which inherits from A) 13. B inherits from A: name, price, foo2, foo3 C inherits from B: name, price, foo1, foo2, foo3 14. B does not inherit from A: number, foo1 C does not inherit from B: service 15. A( ) called B( ) called 16. A( ) called B( ) called B version of foo1( ) called 17 .A( ) called B( ) called A version of foo2( ) called B version of foo2( ) called 18. A version of foo3( ) called B version of foo3( ) Hi foo3 19. A( ) called B( ) called C( ) called 20. C version of foo1( ) called 10.10.3 Fill in the Code 21. public class G extends F
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/05/2011 for the course CS 38 taught by Professor Stevehouseman during the Summer '09 term at Irvine Valley College.

Page1 / 2

ch10Sections1-5 - 10.10 Exercises, Problems, and Projects...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online