Question: 2- a) What is Encapsulation? (3 points) b) In programming languages, what does it used for? (4 points) 3- a) What is the constructor of
2- a) What is Encapsulation? (3 points) b) In programming languages, what does it used for? (4 points)
3- a) What is the constructor of a class?
b) In some programming languages the class constructor must have a specific name while in some other languages, the class constructor can have any name. Describe the cons and pros of each approach.
4- a) What is a Class? b) What is the difference between a Class and an Object?
5- What are the advantages of Information Hiding?
6- a) What is an Abstract Data Type? Give an example
b) What are the benefits of data abstraction?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
