Kerala Plus Two Computer Science Chapter Wise Previous Questions and Answers Chapter 2 Concepts of Object-Oriented Programming
Compare static and dynamic polymorphism. [MARCH – 2016] (3)
There are 2 types of polymorphism they are static and dynamic.
a) Compile time (early binding/static) polymorphism It is the ability of the compiler to relate or bind a function call with the function definition during compilation time itself.
Examples are Function overloading and operator overloading
b) Run time (late binding/dynamic) polymorphism It is the ability of the compiler to relate or bind a function call with the function definition during mn time. It uses the concept of pointers and inheritance.
Differentiate between Data Abstraction and Data Encapsulation. [MARCH – 2017] (3)
Data Abstraction : Data abstraction refers to the act of representing essential features without including the background details
Data Encapsulation: The wrapping up of data and functions into a single unit. It is the mechanism that associates the code and the data it manipulates and keep them safe from external interference and misuse.