Question: Please help me!! MC 17. Programmers often use an abstract superclass for a set of subclasses. In practice, what is the typical reason for making
Please help me!!

MC 17. Programmers often use an abstract superclass for a set of subclasses. In practice, what is the typical reason for making the superclass abstract, as opposed to non-abstract? a. when you need to make many objects of the superclass b. when you won't need any objects of the superclass c. when you need to make many objects of the subclasses d. when you won't need any objects of the subclasses e. when you just want to get the application written quickly MC 18. Regarding inheritance, what does a subclass inherit from its superclass? a. data members but not methods b. methods but not data members c. methods and data members d. only static methods and data members e. only non-static methods and data members MC 19. Which of the following best describes how the validate method is used for GUI objects? a. to change text fonts b. to update the component hierarchy tree c. to change component background colors d. to draw on component surfaces e. to assign listener interfaces C2. You have a subclass of JPanel named KPanel. Write a method for KPanel that draws custom graphics by overriding the inherited method paintComponent() to draw a red square using the method drawRect(100, 100, 100, 100). MC 20. When drawing on a JComponent in an application window, the Java Graphics class would use the coordinates (0, 0) to refer to: a. the lower left corner of the entire application window b. the upper right corner of the entire application window c. the lower left corner of the JComponent d. the lower right corner of the JComponent e. none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
