Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

tell about copy constructor

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


Please Help Members By Posting Answers For Below Questions

What is object and example?

1158


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2527


What is pure oop?

1079


What is encapsulation in simple terms?

1014


What is purpose of inheritance?

1088


What polymorphism means?

1052


Explain the concepts involved in Object Oriented programming.

1208


Whats is abstraction in oops?

1058


What is the important feature of inheritance?

1111


Why it is called runtime polymorphism?

1116


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.

1974


officer say me - i am offered to a smoking , then what can you say

2089


What is destructor give example?

1042


What are the important components of cohesion?

1009


can inline function declare in private part of class?

4373