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 compile time and run time polymorphism. Show all posts
Showing posts with label compile time and run time polymorphism. Show all posts

Tuesday, February 21, 2023

Explain polymorphism and compare compile time and run time polymorphism. Describe virtual and pure virtual function with an example.

February 21, 2023 0
 Polymorphism is the concept of object-oriented programming that allows a function to take on many different forms, depending on the context in which it is called. In C++, polymorphism can be achieved through function overloading and function overriding.Compile-time polymorphism, also known as static polymorphism, occurs when the compiler determines which function to call based on the types of the arguments provided. This is achieved through function...

Slider Widget