Answer Posted / achal ubbott
e.g. Let there be a class
class Sample
{
};
suppose in main() you do like here
Sample obj1;
Sample obj2 = obj1; // Copy cons called here.
// then you call a function like this
fun(obj1); //Copy cons called here.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is object and example?
#include
What is pure oop?
What is encapsulation in simple terms?
What is purpose of inheritance?
What polymorphism means?
Explain the concepts involved in Object Oriented programming.
Whats is abstraction in oops?
What is the important feature of inheritance?
Why it is called runtime polymorphism?
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.
officer say me - i am offered to a smoking , then what can you say
What is destructor give example?
What are the important components of cohesion?
can inline function declare in private part of class?