Computer Science, asked by ayushpandey9431, 5 months ago

write the program to find the area and perimeter of aright angle triangle when perpinducluar base input by user​

Answers

Answered by keyboardavro
0

Answer:

For a programming language to be object-oriented, it has to enable working with classes and objects as well as the implementation and use of the fundamental object-oriented principles and concepts: inheritance, abstraction, encapsulation and polymorphism.

Let’s summarize each of these fundamental principles of OOP:

Inheritance- Inheritance is the mechanism of basing an object or class upon another object (prototypical inheritance) or class (class-based inheritance), retaining similar implementation.

Polymorphism- Polymorphism is the provision of a single interface to entities of different types or the use of a single symbol to represent multiple different types.

Abstraction- Abstraction is a process of hiding the implementation details from the user, only the functionality will be provided to the user. In other words, the user will have the information on what the object does instead of how it does it.

Encapsulation- Encapsulation is an OOP concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding.

Some OOP theorists also put the concept of exception handling as additional fifth fundamental principle of OOP. But in general, the four concepts are considered as the principles of object-oriented programming.

Hope this helps.

Explanation:

Similar questions