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

Info icon This 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
Image of page 1

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

View Full Document Right 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);
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,
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern