Thursday, May 31, 2007

Campus_15

Earn 1860 Rs/Month by reading SMS


All India Level Contest


Q: In C++, what is the difference between method overloading and method overriding?
Answer: Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of the inherited class rewriting the virtual method of the base class.


Q: What is pure virtual function?
Answer: A class is made abstract by declaring one or more of its virtual functions to be pure. A pure virtual function is one with an initializer of = 0 in its declaration.


Q: What is a virtual destructor?
Answer: The simple answer is that a virtual destructor is one that is declared with the virtual attribute. The behavior of a virtual destructor is what is important. If you destroy an object through a pointer or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be complete.

Q: What is virtual channel?
Answer: Virtual channel is normally a connection from one source to one destination, although multicast connections are also permitted. The other name for virtual channel is virtual circuit.



Join http://groups.yahoo.com/group/campus_online/ for more updated information



Earn 1860 Rs/Month by reading SMS

No comments: