lab7 - protected can by accessed by classes in the same...

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

View Full Document Right Arrow Icon
Jeffrey Cox 1. B 2. C 3. D 4. B 5. A 6. A 7. C 8. B 9. A 10. C 11. A 12. D 14. C 15. A 16. A 17. TRUE 18. False
Background image of page 1

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

View Full DocumentRight Arrow Icon
19. False 20. True 21. True 22. False 23. False 24. True 25. True 26. False 1. Extends not expands 2. Private variable cannot be used by subclass 3. Passengers = p; 4. Abstract classes data types don’t match, needs to be int or double. 1. Public class Poodle extends Dog 2. Felis class constructor will execute before the Tiger class constructor 4. Super(x, y, z); 5. Dog.setValue(10);
Background image of page 2
6. getValue(); 1. inheritance 2. Animal is the superclass dog is the subclass 3. Pet is the subclass Dog is the supeclass 4. Private cannot be accessed by anything outside the class,
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: protected can by accessed by classes in the same package. 5. No it can not directly access them. 6. Superclass 7. Overriding a method replaces the method with one of the same name. Overloading has a different signature. 8. Its determined at runtime which method to call. 9. When a variable contains a polymorphic reference 10. A method that must be overridden in the subclass 11. A abstract class is a class that other classes inherit from....
View Full Document

This note was uploaded on 07/28/2009 for the course MUS 187 taught by Professor M during the Summer '09 term at Anne Arundel CC.

Page1 / 3

lab7 - protected can by accessed by classes in the same...

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

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