Plus Two Computer Science Chapter Wise Previous Questions Chapter 2 Concepts of Object-Oriented Programming

Kerala Plus Two Computer Science Chapter Wise Previous Questions and Answers Chapter 2 Concepts of Object-Oriented Programming

Question 1.
Compare static and dynamic polymorphism. [MARCH – 2016] (3)
Answer:
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.

Question 2.
Differentiate between Data Abstraction and Data Encapsulation. [MARCH – 2017] (3)
Answer:
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.

Plus Two Computer Science Chapter Wise Previous Questions