InterviewSolution
Saved Bookmarks
| 1. |
Class C Implements Interface I Containing Method M1 And M2 Declarations. Class C Has Provided Implementation For Method M2. Can I Create An Object Of Class C? |
|
Answer» No not possible. Class C should provide implementation for all the methods in the Interface I. SINCE Class C didn't provide implementation for M1 method, it has to be declared as ABSTRACT. Abstract classes can't be INSTANTIATED. No not possible. Class C should provide implementation for all the methods in the Interface I. Since Class C didn't provide implementation for m1 method, it has to be declared as abstract. Abstract classes can't be instantiated. |
|