Advantages of inheritance include
A. | facilitating class libraries |
B. | avoiding the rewriting of code |
C. | providing a useful conceptual framework |
D. | all of these |
Option: D Explanation : Click on Discuss to view users comments. |
A derived class may also be called
A. | sub class |
B. | super class |
C. | parent class |
D. | derived class |
Option: A Explanation : Click on Discuss to view users comments. |
A. | may |
B. | may if the two classes have same name |
C. | must |
D. | must not |
Option: A Explanation : Click on Discuss to view users comments. |
A. | for all parameters to the constructor |
B. | for all parameters to the right of the argument |
C. | for all parameters to the left of the argument |
D. | for no other parameters. |
Option: B Explanation : Click on Discuss to view users comments. |
A. | for all parameters to the constructor |
B. | for all parameters to the right of the argument |
C. | for all parameters to the left of the argument |
D. | for no other parameters. |
Option: B Explanation : Click on Discuss to view users comments. |