How compiler selects(internally) required overridden
function in inheritance?
Answer Posted / 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 View All Answers
What is abstraction in oop with example?
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’.
What is encapsulation c#?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
what is different between oops and c++
Can an interface inherit a class?
What is the purpose of enum?
What is polymorphism what is it for and how is it used?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What are the benefits of polymorphism?
What is difference between data abstraction and encapsulation?
Can abstract class have normal methods?
Why do we use encapsulation in oops?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)