selfhelp- drawing objects solutions

selfhelp- drawing objects solutions - 2. a2 Ex h __3__ Ex(...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Answers to self-help exercise on drawing objects of subclasses 1. Note, when writing a method in an object, it is best to include its complete signature, that is, its name followed by the types of its parameters, in parentheses and separated by commas. It is not necessary, but it gives you, the reader, more information.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2. a2 Ex h __3__ Ex( int ) getH() toString() a3 Ex h __3__ Ex( int ) getH() toString() k_6_ Sub( int ) toString() Sub a4 Ex h __3__ Ex( int ) getH() toString() k_6_ Sub( int ) toString() Sub SubSub1() hPlus1() toString() SubSub1 a5 Ex h __3__ Ex( int ) getH() toString() k_6_ Sub( int ) toString() Sub p ___2___ SubSub2...
View Full Document

Ask a homework question - tutors are online