ExamVeda
Login
Home
Constructors and Methods
?

public class MyClass{ }

For the above class(MyClass) what is the correct way of declaring constructor?

Answer & Solution
Correct Answer: Option E

Choice A,C are the correct answers.
The default access specifier for any constructor is same as the access specifier of class.so the options A and C are correct.

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.