How compiler selects(internally) required overridden
function in inheritance?

Answers were Sorted based on User's Feedback



How compiler selects(internally) required overridden function in inheritance?..

Answer / deepthi

By using virtual tables,

when Compiler views virtual in a class declaration then for
each class it creats one virtual table

Is This Answer Correct ?    2 Yes 0 No

How compiler selects(internally) required overridden function in inheritance?..

Answer / deepthi

By using virtual tables,

when Compiler views virtual in a class declaration then for
each class it creats one virtual table

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More OOPS Interview Questions

Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.

1 Answers   Global Academy, Infotech,


What is oop in simple words?

1 Answers  


What is the difference between class and structure?

7 Answers  


what is the difference between class and structure in C++?

9 Answers   Aspire, IBS, TCS,


Describe these concepts: Polymorphism, Inheritance and Abstraction.

0 Answers   TCS,






What is an advantage of polymorphism?

0 Answers  


how do you handle yourself when you feel the wald is aganist you

2 Answers  


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


What type of loop is a for loop?

0 Answers  


What is object-oriented programming? Webopedia definition

0 Answers  


What does sksksk mean in text slang?

0 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  


Categories