Constructors
Question 1 |
Given a class named student, which of the following is a valid constructor declaration for the class?
Student student(){} | |
Private final student(){} | |
Student(student s){} | |
Void student(){} |
Question 1 Explanation:
A constructor cannot specify any return type, not even void. A constructor cannot be final, static or abstract.
There is 1 question to complete.
