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

what is the size of an empty class

12 Answers   Wipro,


what is the realstic modeling?

1 Answers  


In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}

1 Answers  


why we call c++ is object oriented lanaguage

7 Answers   HCL,


what is the difference between javap and jad utility

1 Answers   Wipro,






1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)

1 Answers   Nagarro,


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

0 Answers   Microsoft, TCS,


can you explain how to use JavaBean in Project

3 Answers   Infosys, Satyam,


What are two types of polymorphism?

0 Answers  


Why do we use inheritance?

0 Answers  


What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile

4 Answers  


i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me.

1 Answers   Syntel,


Categories