Database-Management-System
October 11, 2023KVS 22-12-2018 Part-A
October 11, 2023Nielit Scientist-B IT 4-12-2016
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.
Correct Answer: C
Question 1 Explanation:
A constructor cannot specify any return type, not even void. A constructor cannot be final, static or abstract.
Subscribe
Login
0 Comments