Interviewer And Interviewee Guide
Interviews Quizzes

Placement Assistance Interview Question:

Explain Overriding?

Submitted by: Administrator
It happens in inheritance, when base class has a fucntion called "int sum(int a ,int b)" and the derived class also has the function "int sum(int a ,int b)".in this case we cannt access the base class class function by just creating an object of derived class.

If the base class function has the keyword Virtual then it means that the function should be overrided and we use the keyword Override.
Submitted by: Administrator

Read Online Placement Assistance Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.