Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the virtual function ?

function virtual
0
Posted

What is the virtual function ?

0

That can be overridden in derived class. Answer2: virtual methods are declared with ‘virtual’ keyword and it must be redefined in the derived classes. when more than one classes derives a method in the base class, that method can be written with virtual to avoid ambiguity.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123