Class Notes (839,328)
Canada (511,271)
COMP 2710 (31)
Tina Yu (20)

140117 - Ch 9 Inheritance.doc

2 Pages

Computer Science
Course Code
COMP 2710
Tina Yu

This preview shows 80% of the first page. Sign up to view the full 2 pages of the document.
Ch 9 InheritanceDo not put super class instance variables in subclass you would create a second copy any method can be overloaded or overridden calls the constructor Top down superclass then subclassQuestion classconstructortextanswerChoiceQuestionconstructorchoicesnew ArrayList String ChoiceQuestion q1new ChoiceQuestion q1 hasis of type ChoiceQuestiontextanswerchoicesArrayListIf Question is deletedq1 hasis of type ChoiceQuestiontextnullanswern
More Less
Unlock Document

Only 80% of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.