Answer Posted / naveen kumar
The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you achieve runtime polymorphism?
How to get the current position of the file pointer?
Is it possible to use a new for the reallocation of pointers ?
What do the keywords volatile and mean mutable?
What is overriding vs overloading?
What does and I oop mean in text?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are the types of array in c++?
What is polymorphism in c++? Explain with an example?
How do I make turbo c++ full screen?
What is the standard template library (stl)?
What is public, protected, private in c++?
Is overriding possible in c++?
What would happen on forgetting [], while deallocating an array through new?
What are the defining traits of an object-oriented language?