Explain, why the constructor is required in implemented
class?
Answer Posted / sekhar
Constructor is like a method.It can be invoked as soon as
we create an object for the class.We can overload
constructor.to call them we need pass parameters in main
method.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
When parseint method can be used?
can used Protected Class outside Function.?
What is boolean law?
What is method reference in java?
What are void methods?
What languages are pass by reference?
Does substring start with 0?
What is the purpose of default constructor?
What is the difference between abstract class and interface1? What is an interface?
Differentiate between the constructors and methods in java?
What is a default method?
Explain inheritance in java?
How is a structure different from array ?
What is the current version of java?
What is the advantage of OOP in java?