Answer Posted / nishikant sahu
V-Table holds the addresses of virtual functions of a class
and type_info structure for RTTI.V-table created class basis.
when an object created compiler secretly inserted the
v-table pointer of the respective class and then Vptr
iterator accordingly. all are done under the hood.
Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
What is the function of I/O library in C++ ?
What are the advantages of inheritance in c++?
Differentiate between a copy constructor and an overloaded assignment operator.
What is exception handling? Does c++ support exception handling?
Is c++ used anymore?
A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.
Explain the difference between new() and malloc() in c++?
What is oops in c++?
What is dynamic and static typing?
what kind of projects are suitable for c and c++
What is the use of lambda in c++?
What is abstract class in c++?
Can we overload operator in c++?
Why do we learn c++?
Is c++ free?