lab4 - 1 CS116 LAB 4 This Lab is to be started in the lab....

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

View Full Document Right Arrow Icon
1 CS116 LAB 4 This Lab is to be started in the lab. It is due on June 26 on Blackboard time stamped by 10:00 p.m. Objectives: Inheritance Principles. Abstract classes and abstract methods. Interfaces. TASK 1 (1.4 points -0.1 point per question) 1. Please answer the following questions from your text: Go to page 656 in your text and read the topic and the examples classes shown in section 10.2 (Inheritance Design). Also, study sections 10.3 (the protected access modifier), 10.5 (abstract classes and methods) and 10.8 (interfaces). Answer below the questions 12 though 20 on pages 722-723 Answer Question 12. Draw the rectangles representing the classes involved and draw the arrows showing the way the inheritance relationships flow. Some theory first: In the rectangle, type the variables and the methods showing the proper symbols in front of each that indicates the type of access modifier. The access modifiers provide “Visibility”, which is the term used in computer lingo (see page 657 of your text). Include the Object class at the top of your hierarchy with its toString method only. Keep
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.

Page1 / 6

lab4 - 1 CS116 LAB 4 This Lab is to be started in the lab....

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