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 polymorphism in oops with example?
Why do we use polymorphism?
hi all..i want to know oops concepts clearly can any1 explain??
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(); }
Are polymorphisms mutations?
What polymorphism means?
How does polymorphism work?
Which is better struts or spring?
to find out the minimum of two integer number of two different classes using friend function
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
How long to learn object oriented programming?
Why is abstraction used?
Explain the concepts involved in Object Oriented programming.
What are the benefits of oop?
What is polymorphism what are the different types of polymorphism?