A good answer might be:The blanks are filled in, below: | |
super()Parts of the superclass (the parent class) that we want to re-use can be accessed by using super. In the constructor, super must appear before anything else (although in this example there isn't anything else.)
When the greeting() method of a YouthBirthday object is invoked, first its superclass's method will run, then the rest of the new method will run. | |
QUESTION 8:What will be written by the following: Click Here after you have answered the questionYouthBirthday yb = new YouthBirthday( "Valerie", 7 ); yb.greeting(); |