Home > Java Programming > Abstract > Questions and Answers
Exercise:
Section 1
Section 2
Answer and Explanation
Answer:public abstract class Car{ Protected abstract void acc ( );}
Explanation:In the first option a) method is not abstract so it should have implementation but in the example it is not there. In the second option b) method is protected, actually interface methods are public abstract by default so it is not the Answer.In the fourth one method is abstract but still it is implemented, so that is not the Answer. So finally c) is the Answer.
Comment on this Question
Name: