To use an inherited method, an object must be cast to the superclass before using that method.
Answer the following statement true (T) or false (F)
False
Because C#, Java, and Objective-C support polymorphism, objects of a subclass can be used as if they are an object of the superclass.
You might also like to view...
Which of the following commands is used to create a custom object using the new operator?
A. var objName = new Object();object.property = value;object.method = function() {commands}; B. var objName = value;object.Name = value;object.property = function() {commands}; C. var method = new Object();object.property = value;object.objName = function() {commands}; D. var objName = Object();object.Name = Object();object.method = function() {commands};
Write a method called maxOfTwo that accepts two integer parameters and returns the larger of the two.
What will be an ideal response?