Abstraction And Encapsulation (HD)

preview_player
Показать описание
Crisp and Clear Explanation of Abstraction and Encapsulation. You can understand what is abstraction and what is encapsulation. This is a common interview question and most important part of Object Oriented Programming.

Abstraction - Ignoring those aspects of an object that are not relevant to the current scope of the problem. It reduces scope and helps managing complexity.

Encapsulation - Provides interface to access the functionality of the object & hides how it is implemented (Information Hiding). Other way to describe is to keep the attributes and behavior as one unit – helps to make the object more independent.

Please let us know your thought on this and subscribe to our channel.
Рекомендации по теме
Комментарии
Автор

Encapsulate hides variables or some implementation that may be changed so often in a class to prevent outsiders access it directly. They must access it via getter and setter methods.

Abstraction is used to hiding something too but in a higher degree(class, interface). Clients use an abstract class(or interface) do not care about who or which it was, they just need to know what it can do.

ammarnadir
Автор

i like the definition you gave about Encapsulation it is the ultimate when it comes to confusion with abstraction well done boy.

negatuabera
Автор

best way of explaining with nice examples i got a clear idea on abstraction and encapsulation

SuperAdityaking
Автор

Well explained with examples. Thankyou :)

Vaish
Автор

encapsulation, like the word implies, is binding data to its functions in a form of a class.

spicytuna
Автор

how can you be clearly crisp about abstraction? pun intended. i like your definition on abstraction.

spicytuna
Автор

very well explained i almost subscribed.

negatuabera
Автор

Encapsulation and information hiding are different bro

ShaggyDishu
Автор

many people relate data hiding to encapsulation. that is wrong. data hiding is more of abstract concept like your video states.

spicytuna
Автор

This is too bookish, abstraction is simply a Concept while encapsulation is its implementation that's it.

yt.arunthakur