what is virtual function?

Answer Posted / shekhar

virtual function is used to prevent from more times
calling.That means if a function is declared as virtual
then its def will be diferent in base class & derived class

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oop with example?

642


Who invented oop?

653


write a programe to calculate the simple intrest and compund intrest using by function overlading

1666


What is object and class in oops?

586


Is html an oop?

580






What is polymorphism used for?

566


What is debug class?what is trace class? What differences are between them? With examples.

1604


What does <> mean pseudocode?

622


What are constructors in oop?

587


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1637


explain sub-type and sub class? atleast u have differ it into 4 points?

1832


What does and I oop mean in text?

620


Can main method override?

583


write knight tour problem which is present in datastructure

2164


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1403