Computer Science, asked by muakanshakya, 1 year ago

Heya!! 

__________________________


•Write briefly about the four principles of OOP'S in Java .

_______________

•Don't spam❌

Answers

Answered by Anonymous
5
hey mate here is ur answer
Abstraction. Abstraction means using simple things to represent complexity. We all know how to turn the TV on, but we don’t need to know how it works in order to enjoy it


Encapsulation. This is the practice of keeping fields within a class private, then providing access to them via public methods. It’s a protective barrier that keeps the data and code safe within the class itself.


Inheritance. This is a special feature of Object Oriented Programming in Java. It lets programmers create new classes that share some of the attributes of existing classes. This lets us build on previous work without reinventing the wheel.


Polymorphism. This Java OOP concept lets programmers use the same word to mean different things in different contexts. One form of polymorphism in Java is method overloading.




thanks so much.....
Answered by Anonymous
25
⭐⭐⭐⭐⭐ ANSWER ⭐⭐⭐⭐⭐

==================================

❄❄❄ PRINCIPLES OF OOP ❄❄❄

1] ENCAPSULATION : The system of wrapping up of data and functions into a single unit is known as Encapsulation. Through Encapsulation, the source code of an object could be maintained independently.

2] DATA ABSTRACTION : Data abstraction is the act of representing the essential features without knowing the background details. It is always relative to the purpose or user. It depends on the area of applications of objects and typical functions.

3] INHERITANCE : The term inheritance means to link and share some common properties of one class with the other class. During inheritance, the elements of base class are shared by derived class.

4] POLYMORPHISM : The term "polymorphism" is defined as the process of using a function /method for more than one purpose. It supports function overloading. The function overloading is a process to create a number of functions/methods with the same name but with different parameters that match up the methods name to execute the program.

==================================

⭐⭐⭐ ALWAYS BE BRAINLY ⭐⭐⭐

==================================

Anonymous: ^_^
Anonymous: Most welcome
Similar questions