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 this pointer in oop?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is object-oriented programming? Webopedia definition
What is the important feature of inheritance?
What is the real life example of polymorphism?
What is super in oop?
What is oops in simple words?
Where You Can Use Interface in your Project
write a program to find 2^n+1 ?
Why is static class not inherited?
What is protected in oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is abstraction encapsulation?
How many human genes are polymorphic?