Computer Science, asked by Anonymous, 7 months ago

Explain the following terms :

1. Object

2. Abstraction

3. Encapsulation


50 points (:​

Answers

Answered by SyedNomanShah
29

\huge\boxed{\underline{\mathcal{\red{A}\green{N}\pink{S}\orange{W}\blue{E}\pink{R}}}}

Object:

An object, in object-oriented programming (OOP), is an abstract data type created by a developer.

☆ It can include multiple properties and methods and may even contain other objects.

Abstraction:

The definition of abstraction is an idea that lacks a concrete nature, or is idealistic in nature.

☆ Examples of abstractions can be feelings such as sadness or happiness.

☆ Abstraction is defined as a work of art where the subject or theme is implied.

Encapsulation:

Encapsulation is one of the fundamental concepts in object-oriented programming (OOP).

☆ It describes the idea of bundling data and methods that work on that data within one unit,

☆ e.g., a class in Java

Answered by VIGYAS
16

Answer:

Object −

Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors – wagging the tail, barking, eating. An object is an instance of a class. Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.

Abstraction

ABSTRACTION is the concept of object-oriented programming that "shows" only essential attributes and "hides" unnecessary information. The main purpose of abstraction is hiding the unnecessary details from the users. ... It helps in reducing programming complexity and efforts

Encapsulation

Encapsulation is one of the fundamentals of OOP (object-oriented programming). It refers to the bundling of data with the methods that operate on that data. Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties' direct access to them.

✨♥️follow me ♥️✨

Similar questions