what are the ways in which a constructors can be called?
Answer Posted / king
A constructor can be called implicitly or explicitly.
When an object of class is created the constructor is
implicitly called.
When we create an object we desired properties, we call the
constructor explicitly.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What polymorphism means?
What is advantage of inheritance?
Can main method override?
What is encapsulation c#?
Can we have inheritance without polymorphism?
What is data binding in oops?
What are benefits of oop?
What is a class oop?
When not to use object oriented programming?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
How oops is better than procedural?
Why is polymorphism needed?
What is polymorphism oop?
Which is better struts or spring?
what are the different types of qualifier in java?