Abstraction & Encapsulation

preview_player
Показать описание
Basic Real Life examples of Abstraction & Encapsulation.

Рекомендации по теме
Комментарии
Автор

After stucking in a tutorial hell, I have found your tutorial useful.
Thanks for the clarification

abdulrehmanamer
Автор

Hey 👋. Great Video and the result is here, 1.1 Lakh veiws.Crisp and clear thus more retention.

piyushbhatt
Автор

First of all Luck to your channel. My question is can you give example of abstraction in coding terms like by involving class etc. Can you relate this TV and Laptop concept with programming terms? I have read this example so many times yet nobody is capable of relating them to code. Seems like 80 to 90 % of coders are still confused with what these are actually.

mohitrawat
Автор

i m tooo confused between these your example clear my all you big bro

deepakkumar-qzud
Автор

👏👏👏👏bhava tu tar mazi concept clear kelis .
.
.
.thanks yaaar🙏🙏🙏🙏

tusharkudale
Автор

Just a correction and modification of some concepts

Abstraction is not that concept of showing or providing only the important things and hiding all unnecessary or complex details from the user (the programmer), as everyone thinks

You kindly explained that Abstraction is to provide only what the user can get, in short, to provide only the Important points in the classes that will be instanciated using an Object, and this is unfortunately wrong....

And if it was actually in this sense, the name would have been Only-Important-members or Hidding Data and so on...

In short, your concept is part of the definition of Encapsulation and not Abstraction, and it is very close to the concept of inheritance more than Encapsulation

Linguistically:

Abstraction means intangible or imaginary or virtual or the opposite of Concrete which means tangible, real or active

Programmatically:

It specifically means the Class and the Interface (interface is not available in all programming languages). The important thing is the Class in itself.

And any Class in OOP is considered as a Template, Model, or Map of something in Reality. That thing may be real or imaginary, and as it may be tangible or intangible, it does not matter the Projection and how .... but it matters The Classes that will Ultimately Express an Entity, Component, or Object that we will deal with later....

So Abstraction in OOP will be like that:

Modeling the Real World. and No more than this Definition ..


There are also inactive, intangible, or Abstract Classes that we call them Class Model, and they are somewhat similar to the Interface.

This type has a directive of type Abstract and it does not accept instanciate with Objects, that is, it has no Objects to represent it (No Instances).

And her task is Only to make a Model or Template for her children's that inherited from and finally can share members from base Abstract Classe.

And this technique is also within the definition of the corner Abstraction

And my concept here is in modeling and not in the role of the abstract class (because its role in terms of providing only what the sons classes can share as members and this is a part from the corner of inheritance)

finally :

Abstract classes is an Abstract Model for a Concrete classes Where this concrete will be a Models for some objects in our Real World...

Interfaces are also a Model or Abstract that Classes use them in-order to benefit from those members in that Interface..

So, Abstraction OOP is only about these three things in C Sharp, Java and Delphi and maybe C++ builder(because all of them have Interface as far as I know now)

As for the definition that you explained in the video, it is related to Encapsulation and Inheritance rules and not Abstraction at All ..

Abstraction is the first Step Rule of OOP Pillars wich is the Classes and Interfaces ...
Abstraction is not more than a Modelling ...

And thank you for your understanding ...

MBen_Delphi
Автор

programming concept on white board, why you didn't use Computer/ use Graphics Editing for better understanding .

adeelzahid
Автор

Encapsulation is to hide or protect vital data which is not to be modified by external codes. Abstraction is to decouple the concrete implementation of a behavior so that It can be varied for different requests!!

shanpalaniram
Автор

perfectly explained, I want to suggest please switch of fan while shooting videos

snehabarsale
Автор

TQ sir...within less span I got idea on these

leelabhavani
Автор

you explain so nicely please keep uploading next tutorial's videos.thanks

MuhammadZubair-xwpf
Автор

Thanks ...simple and easy to understand ..the examples are clear

tshiphiriidah
Автор

encapsulation is just co-locating data and functions that can work with that data together (in a class).

sohamjoshi
Автор

thanks so much! and the lecturer is handsome

ronnieserfajuan
Автор

Sir what are the benifits of encapsulation

vaishnavisingh
Автор

Really awesome sir.... Finally got the video what I'm searching 😊😊

alekhyaali
Автор

Thankyou brother, this was so simple explanation, u cleared my concept, keep making such videos. All the best

ravichilka
Автор

good job sir keep it up and it's very helpful tutorial .

muhammadzafar
Автор

I may not know exact answer but its not encryption for Encapsulation dude. wrong definition

VIJAYADITYA
Автор

hlo sir.. nice explained.. and uh r looking so smart 😍

apoorvajoshi