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 |
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?
What does and I oop mean?
difference between overloading and overridding
What are properties in oop?
Write a macro for swapping integers
What is difference between oop and pop?
Can you explain polymorphism?
What are virtual functions?
Can a destructor be called directly?
Why do we use oop?
WAP find square root of any number (without using sqrt() )?
function overridind means and simple program