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
What is the real life example of polymorphism?
What is oops?what is its use in software engineering?
what is the sylabus for priliminaries?
What is oops and why we use oops?
What are the benefits of interface?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
write a program to find 2^n+1 ?
what are the realtime excercises in C++?
What is encapsulation in simple terms?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
any one please tell me the purpose of operator overloading
Why polymorphism is used in oops?
Explain the concepts involved in Object Oriented programming.
Is html an oop?
Is this job good for future? can do this job post grduate student?