What is Virtual Keyword?

Answer Posted / p.madhupriya

virtual keyword we can call all the funtion of
same name used in different class by creating pointer of
the base class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a c++ program to display pass and fail for three student using static member function

2807


What is the purpose of enum?

578


Can main method override?

580


What polymorphism means?

616


State what is encapsulation and friend function?

694






Prepare me a program for the animation of train

1987


What is multilevel inheritance in oop?

551


Why do we need oop?

657


How many human genes are polymorphic?

566


What is difference between abstraction and encapsulation?

586


How do you achieve polymorphism?

607


How do you define a class in oop?

624


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1975


What is class in oop with example?

611


What is super in oop?

589