what are the ways in which a constructors can be called?
Answer Posted / s.verma
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 ? | 4 Yes | 2 No |
Post New Answer View All Answers
Get me an image implementation program.
What is byval and byref? What are differences between them?
Is abstract thinking intelligence?
Why do we use oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
How to call a non virtual function in the derived class by using base class pointer
What are functions in oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is the main purpose of inheritance law?
What are the 3 pillars of oop?
what is the sylabus for priliminaries?
What is the real life example of polymorphism?
Why is oop better than procedural?
Whats is abstraction in oops?