How Virtual functions call up is maintained?
Answers were Sorted based on User's Feedback
Answer / ranjeet garodia
it is not look up table.
instead it is vtable.
every object has the vptr which locate the vtable in which
there is entries for the virtual functions.
so when calling the function it ucall the respective
function through vptr.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / guest
By using Look up tables that were added by the compile to
every class image.
| Is This Answer Correct ? | 0 Yes | 3 No |
Describe the process of creation and destruction of a derived class object?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
What are the differences between new and malloc?
Define upcasting.
What do you mean by persistent and non persistent objects?
List out some of the OODBMS available?
template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }
List out function which we can call without using object
Can we make any program in c++ without using any header file and what is the shortest program in c++.
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
What is fflush c++?
Explain the difference between new() and malloc() in c++?