Which of the following could be used to declare abstract method method1 in abstract class Class1 (method1 returns an int and takes no arguments) ?
A) public int method1() ;
B) public int abstract method1() ;
C) public abstract int method1() ;
D) public int nonfinal method1() ;
Correct Answer:
Verified
Q9: Which of the following statements about abstract
Q10: Non-abstract classes are called _.
A) real classes.
B)
Q11: When a superclass variable refers to a
Q12: For which of the following would polymorphism
Q13: Which of the following is false?
A) You
Q15: Consider classes A, B and C, where
Q16: Which statement best describes the relationship between
Q17: Assigning a subclass reference to a superclass
Q18: Classes and methods are declared final for
Q19: All of the following methods are implicitly
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents