What do you mean by virtual function and virtual classes?



What do you mean by virtual function and virtual classes?..

Answer / Km. Archana

A virtual function is a member function in C++ that can be overridden by derived classes. Virtual functions allow polymorphic behavior, meaning the same method call can produce different results depending on the type of object it's called on. A virtual class is not a standard concept in C++ or other object-oriented programming languages.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

Explain colloboration

1 Answers  


What is diamond inheritance problem? How java 8 solves this problem?

1 Answers  


Explain about multiple inheritance?

1 Answers  


Explain the rationale behind object oriented concepts?

1 Answers  


Who is an Actor?

5 Answers   TCS,


Why is class hierarchies managed in object-oriented programming?

1 Answers  


Can encapsulation be called as a security device?

1 Answers  


Every object has : state, behavior and identity - explain

2 Answers   InfoAxon Technologies, Protech,


What is the main difference between overloading and overriding?

1 Answers  


What is the difference abstract class and interface?

1 Answers  


what three "domains" are considered during analysis modeling?

1 Answers   Wipro,


Can you create an instance of an abstract class?

1 Answers  


Categories