Question: QUESTION 1 inheritance in object - oriented programming ( OOPS ) plays a vital role in structuring and organising code efficiently. As a fundamental concept

QUESTION 1
inheritance in object-oriented programming (OOPS) plays a vital role in structuring and organising code efficiently. As a fundamental concept in software development, inheritance enables the creation of new classes that inherit attributes and behaviours from existing classes, improving code reusability and overall efficiency.
List and briefly explain types of inheritance. (6)
Give an example of each type of inheritance. (3)
Question 2
polymorphism as the ability of a message to be displayed in more than one form. Real life example of polymorphism, a person at the same time can have different characteristics. Like a man at the same time is a father, a husband, an employee.
2.1 Give an example of polymorphism using Java.
(3)
QUESTION 1 inheritance in object - oriented

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!