OOP Concepts or Object Oriented Programming Concepts
IT Notes → Object Oriented Programming @ December 22, 2020
- Class is a generic template for objects whereas object is an instance of class.
- Abstraction means representing only the important details without including all the details.
- The wrapping up of data and functions into a single unit is called as encapsulation.
- Polymorphism is defined as one interface to control access to a general class of actions. There are two types of polymorphism one is compile time polymorphism and the other is run time polymorphism. Compile time polymorphism is functions and operators overloading. Runtime time polymorphism is done using inheritance and virtual functions.
- Overloading is defining functions that have similar signatures, yet have different parameters. Overriding is only pertinent to derived classes, where the parent class has defined a method and the derived class wishes to override that function.
- Early binding determines execution path at compilation and late binding allows for dynamic execution at runtime.
Subscribe
Login
0 Comments