Search
.Management Sciences
A. Multiple inheritance
B. Multilevel inheritance
C. Hierarchical inheritance
D. None of above
Related Mcqs:
- Inheritance means ?
- A. Sub class create object of super class B. Sub class extends Base class C. Sub class extends super class D. All of the above...
- Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } } ?
- A. The program has a compilation error because we cannot assign radius to radius. B. The program has a compilation error because it does not have a main method. C. The program does not compile because Circle does not have a default constructor. D. The program will compile, but we cannot create an object of … Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } } ?Read More...
- In java, gc() method is available in which package ?
- A. java.io package B. java.lang package C. java.awt package D. java.util package...
- Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
- A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m...
- Which of the following statements about arrays is syntactically wrong ?
- A. arrayName[] p = new arrayName[5]; B. arrayName p[][] = new arrayName[2][]; C. arrayName[] p []; D. arrayName p[5];...
Recent Comments