What is Virtual Keyword?

Answer Posted / giri

Virtual keywork is important functionality in C++. We used
virtual class/ function to access function run time.
Virtual function is override the same function in derived
classs and can access through run time using Upcasting.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multilevel inheritance?

727


What is the example of polymorphism?

562


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1839


What are the 5 oop principles?

605


What is the significance of classes in oop?

592






What is encapsulation c#?

606


What is class encapsulation?

608


Describe these concepts: Polymorphism, Inheritance and Abstraction.

616


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?

1397


What is oops and its features?

594


How oops is better than procedural?

595


Can bst contain duplicates?

678


What makes a language oop?

601


What is balance factor?

589


what is the drawback of classical methods in oops?

2924