if u write a class do u write Assignment operator and copy
constructor
Answer / sachin
Compiler provide the assignment operator/ copy constructor
by default. The assignment operator and copy constructor do
the bit wise copy of the object. If user want to do the
member wise copy(ex:allocating the memory from the heap)
for the members, one can write his/her own assignment
operator/ copy constructor.
| Is This Answer Correct ? | 11 Yes | 0 No |
What is difference between #define and const?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Prepare me a program for the animation of train
How to overload new operator in c++
What is the important feature of inheritance?
What is Hashing and how is it done? Pictorial form?
what is oops
What is friend function?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Write a program to multiply 3x3 matrics