Chapter 14: Problem 25
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()
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.