{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
10.10 Exercises, Problems, and Projects 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 22.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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