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

Wednesday, February 15, 2023

what is polymorphism? explain early binding and late binding concept with program

February 15, 2023 0
 Polymorphism is one of the fundamental concepts in object-oriented programming. It refers to the ability of objects of different classes to respond to the same message (i.e. method call) in different ways, based on the actual class of the object.There are two main types of polymorphism in OOP: early binding ( also known as static polymorphism or compile-time polymorphism) and late binding (also known as dynamic polymorphism or runtime polymorphism).1....

Slider Widget