1. Look at the following pseudocode, which is the first line of a class definition. What is the name of the superclass? What is the name of the subclass? Class Canary Extends Bird 2. Look at the...

1. Look at the following pseudocode, which is the first line of a class definition. What is the name of the superclass? What is the name of the subclass? Class Canary Extends Bird

2. Look at the following pseudocode class definitions: Class Vegetable Public Module message() Display "I'm a vegetable." End Module End Class Class Potato Extends Vegetable Public Module message() Display "I'm a potato." End Module End Class Given these class definitions, what will the following pseudocode display? Declare Vegetable v Declare Potato p Set v = New Potato() Set p = New Potato() Call v.message() Call p.message()




May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here