Explain the following object oriented programming terms;
i. Encapsulation
ii. Polymorphism
iii. Function overloading
Answer:
i. Encapsulation
-The wrapping up of data and functions into a single unit.
-Encapsulation makes data not accessible, and only those functions which are wrapped in the class can access it.
ii. Polymorphism
-An oop concept which means the ability to take more than one form
iii. Function overloading
-The process where a single function name is made to do / perform more than one task at the same time.a single function name can be used to do more than one task.
-It is the process of using the same function name to create functions that perform a variety of different tasks. Function overloading is also called function polymorphism.