This blog is about providing theory as well as simple executable codes of different programming languages such as java, C, C++, and web programming, etc. This blog will be helpful to the IT students to learn about programming.

Showing posts with label virtual function and pure virtual function. Show all posts
Showing posts with label virtual function and pure virtual function. Show all posts

Wednesday, February 15, 2023

Short notes on : 1. virtual function and pure virtual function. 2. class template 3. new and delete operators

February 15, 2023 0
 1. Virtual function and Pure Virtual function:Virtual functions are functions declared in the base class that can be overridden in derived classes. When a virtual function is called on an object, the implementation of the function in the derived class is executed instead of the implementation in the base class. This is useful for implementing polymorphism and allowing derived classes to have different behavior for the same function. A pure virtual function...

Slider Widget