Interviewer And Interviewee Guide

C++ Virtual Functions Interview Question:

What is virtual methods?

Submitted by: Muhammad
virtual methods are used to use the polymorphism feature in C++. Say class A is inherited from class B. If we declare say function f() as virtual in class B and override the same function in class A then at run time appropriate method of the class will be called depending upon the type of the object.
Submitted by: Muhammad

Read Online C++ Virtual Functions Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.