A good answer might be:The revised class is seen below. | |
Choice of MethodsNow objects of the YouthBirthday class have two methods: greeting(), and greeting( String ).
YouthBirthday yBday = new YouthBirthday( "Henry", 12 ); yBday.greeting(); yBday.greeting( "Alice" ); | |
QUESTION 12:What will this program fragment write out? Click Here after you have answered the question |