InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is a method having same name as that of its class?(a) finalize(b) delete(c) class(d) constructor |
|
Answer» The correct choice is (d) constructor The explanation: A constructor is a method that initializes an object immediately upon creation. It has the same name as that of class in which it resides. |
|