We are making classes for our solar system, and we have a class called Planet and a class called Jupiter. We should use ___________________ with these classes.
A. polymorphism
B. inheritance
C. composition
D. virtual abstraction
B
You might also like to view...
Rotate means
What will be an ideal response?
To copy a non-adjacent group of files, press and hold the ________ key
A) C B) Tab C) Shift D) Ctrl
A report based on a ________ will ask for a criterion each time it is opened and will display results based on the criterion allowing one report to display a variety of results
A) parameter query B) main form C) subform D) grid
Given the declaration public class MyClass{ private int x; public void print() { System.out.println("x = " + x); } private void setX(int y) { x = y; }}MyClass myObject = new MyClass();The following statement is legal. myObject.setX(10);
Answer the following statement true (T) or false (F)