Answer the following statements true (T) or false (F)
1. A base class is more specific than its derived class and represents a more specialized group of objects.
2. Polymorphism enables you to conveniently program “in the general” rather than “in the specific.”
3.. One negative of polymorphism is that it’s complicated, so it makes it difficult to extend systems with new capabilities.
4. A base class may have only one derived class.
5. All classes in Visual Basic have Object as either a direct or indirect base class.
1. False. A derived class is more specific than its base class and represents a more specialized group of objects.
2. True.
3. False. Polymorphism simplifies programming with classes and makes it easy to extend systems with new capabilities.
4. False. A base class may have many derived classes.
5. True.
You might also like to view...
The role of the partition(array, start, end) method in Quicksort
A) is to sort the segment of the array between start and end B) is to identify the position of the largest value in the part of the array that lies between start and end C) is to split the array into two sorted sublists on either side of the pivot element D) None of the above
Do applications need to exchange UDP control messages before exchanging data? Explain.
What will be an ideal response?
How are graphics imported into a table?
What will be an ideal response?
Which is true about a bag collection?
A. it is an unordered collection B. it is a standard collection type in Python C. bags can contain only numeric objects D. bags are of a fixed size