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 is encapsulation with example?
What is the problem with multiple inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is the main purpose of inheritance law?
c++ program to swap the objects of two different classes
what is difference between class template and template class?
What is oops concept with example?
What causes polymorphism?
What is debug class?what is trace class? What differences are between them? With examples.
What are the 4 main oop principles?
How do you achieve polymorphism?
State what is encapsulation and friend function?
What is destructor example?
to find out the minimum of two integer number of two different classes using friend function
Give two or more real cenario of virtual function and vertual object