Abstraction and Encapsulation | OOPs in C++ | Lec-3 | Bhanu Priya

This video explains abstraction & encapsulation of oops concept in detailed

Пікірлер: 135

  • @benazeershajahan.p.t9790
    @benazeershajahan.p.t97904 жыл бұрын

    Abstraction :hiding un necessary details.. Eg: TV... To watch TV, we need only display and remote... We don't want the inner parts Encapsulation : hiding data for protection Eg: encrypted Msg... The message is encrypted to avoid reading by someone else

  • @aradhana_official1409

    @aradhana_official1409

    3 жыл бұрын

    Good👍

  • @segatendo4705

    @segatendo4705

    3 жыл бұрын

    Nope. Encapsulation means packaging data and methods into a single unit. It is a way of implementing Abstraction. Now to achieve encapsulation, we use data hiding. That does not mean an encrypted message.

  • @studypointugandpg4091

    @studypointugandpg4091

    2 жыл бұрын

    Nice

  • @laughxfreaks_

    @laughxfreaks_

    2 ай бұрын

    cool

  • @phoenixalcander9934
    @phoenixalcander99345 жыл бұрын

    Example of Encapsulation... In your house , you're the owner or the person who lives there , so in your house you can do anything and see anything without anyone's permission , but if a stranger or the person who doesn't live in your house , he/she has to take permission from you to see and do anything in your house , its same as what Encapsulation does , it protects the private data

  • @dhinesh_0007

    @dhinesh_0007

    5 жыл бұрын

    Good example

  • @soundariya9332

    @soundariya9332

    4 жыл бұрын

    Tks nice

  • @selvapriya4115

    @selvapriya4115

    4 жыл бұрын

    for abstraction???

  • @satwikch7938

    @satwikch7938

    3 жыл бұрын

    @@selvapriya4115 hiding what items are there in your house(refrigirator,telivision ..etc)

  • @rameshmalhotra9525

    @rameshmalhotra9525

    2 жыл бұрын

    kzread.info/dash/bejne/l4t61MOuj9arY5c.html

  • @mohdaasif007
    @mohdaasif0072 жыл бұрын

    Thanks. Abstraction: purpose is hiding complexity.eg. Abstract keyword. Encapsulation: We use it for protecting data and can achieve using access modifier s eg. Private , internal etc.

  • @adarshvaranasi1684
    @adarshvaranasi16843 жыл бұрын

    Abstraction means showing necessary things whereas. Encapsulation is like a wrapper which wraps the methods and datamembers. 👍

  • @sarveshkaran9380
    @sarveshkaran93805 жыл бұрын

    To be honest.. you need to work on example sets before using them. Example could be more simplified and explained

  • @hassanmahammad1135
    @hassanmahammad11356 жыл бұрын

    the way you are explaining with daily life examples is really helpful to understand.....thank you,,maam

  • @faisalbehzad
    @faisalbehzad5 жыл бұрын

    useful explanation thank you for making and sharing this video i'm following your channel from Afghanistan

  • @shahidhussain1093
    @shahidhussain10935 жыл бұрын

    Really Great i have no words to say even i now already but now i can make anyone understand thanks you very much mam. May you always be lucky.

  • @shubhamprasad6910
    @shubhamprasad69104 жыл бұрын

    does abstraction makes code more secure as it hides implementation details? Shouldn't that be added to the advantage list?

  • @saqibbhat4328
    @saqibbhat43285 жыл бұрын

    Nice mam I salute you the way of teaching

  • @sudheerkumar3862
    @sudheerkumar38626 жыл бұрын

    Awesome explanation, impressed.

  • @sandeepsai8294
    @sandeepsai82946 жыл бұрын

    Mam how to identify the concept of Abstraction. Encapsulation inheritance and polymorphism in a Program

  • @Noor_jaha
    @Noor_jaha2 жыл бұрын

    ur excellent mam i really love u god bless u you made my day easy than google

  • @shahzebhashmi2648
    @shahzebhashmi26484 жыл бұрын

    Class is doing same task then why we say encasulation still confusion encapsulation is a property of a class to hide the data?

  • @studypointugandpg4091
    @studypointugandpg40912 жыл бұрын

    Mam u are really awesome

  • @harshshukla5467
    @harshshukla54674 жыл бұрын

    Thanku mam....because you help me in study ....

  • @MBen_Delphi
    @MBen_Delphi2 жыл бұрын

    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 ...

  • @fireflies15
    @fireflies155 жыл бұрын

    Great explanation, thanks for your efforts. I honestly see the last example for encapsulation to be abstraction. You're literally hiding the unnecessary details and showing the essential features, or am I wrong? thanks again

  • @abhaypratapsingh6353
    @abhaypratapsingh63535 жыл бұрын

    Ma'am, can we say Encapsulation is a way to implement Abstraction?

  • @matonline8922

    @matonline8922

    5 жыл бұрын

    Yes kzread.info/dash/bejne/pHh216eMobKnaLA.html

  • @ILuvBilli
    @ILuvBilli5 жыл бұрын

    I did not get the advantage of Encapsulation. You said that we can not set the value of variable since it is private but we can set the value with setter method, then where is the advantage?

  • @haridanda2201

    @haridanda2201

    4 жыл бұрын

    Bro I have been struggling with same doubt please let me know if you got clarity on concept

  • @renatavinhaga

    @renatavinhaga

    4 жыл бұрын

    I'm not sure if it's a good example. But you can think in the advantage in having more control about the user input. For example. If you have a class person, and the user will insert it's high (within the user interface, not directly by code). We can call the set method that inside of it will be all the conditions ands restrictions for the high of a person. You see that if you change it directly, you have to make those verifications by yourself. And also is for purpose of security, if you just have the calling of a function you can't modify the values of an object the way you want.

  • @SmartProgramming
    @SmartProgramming5 жыл бұрын

    very helpful tutorial mam, thanks a lot 👍👍👍🙂🙂🙂🙂

  • @hameed4251
    @hameed42516 жыл бұрын

    hi mam, i appreciate your effort good video, actually i need to know exact difference between abstraction and encapsulation. for abstraction you said databae as example and for encapsulation you took car, both are same it's showing the future to the world and hiding its implementation. so what is the difference

  • @yadurajshakti9587

    @yadurajshakti9587

    6 жыл бұрын

    Hey Shagul, I can understand your frustration on this concept. Let me try and put some points using programming terms not real world. 1) Abstraction is achieved at design level meaning what you see from outside of the program. Do you know how FOREACH loop works internally? Well, we don't really need to know to just use it. So, its complexity is abstracted away or hidden. Now Encapsulation is the concept of wrapping up data and methods which operates on that data, together into a single unit. Best example is CLASS. OOPS has given you the concept of Class otherwise as in "C" your data(variables) and methods would be scattered all around. So, using the power of encapsulation and access modifiers I can provide only essential details to end user, required to use my method or class or DLL etc. Conclusion: Abstraction is achieved by using Encapsulation. If a language does not support Encapsulation, imagine how would you achieve the Abstraction? 2) Read this a bit to have better understanding of Abstraction in OOPS: en.wikipedia.org/wiki/Abstraction_(computer_science)#Abstraction_in_object_oriented_programming

  • @bhoslerohith67

    @bhoslerohith67

    2 жыл бұрын

    @@yadurajshakti9587 thanks bro. Ur explaination is nice🙂

  • @jaipandit17
    @jaipandit175 жыл бұрын

    Thankyou ma'am💐💐

  • @molyoxide8358
    @molyoxide83584 жыл бұрын

    mrs.Bhanu Priya you should have explained it with a C++ Program for better understanding.

  • @seshaseso8195
    @seshaseso81955 жыл бұрын

    Thanks mam for your note

  • @santhoshnair2464
    @santhoshnair24645 жыл бұрын

    The only videos longer than 10 minutes I have ever watched on youtube are those of Sadhguru Jaggi Vasudev. I could never concentrate for more than 5 minutes on tutorial videos - but this is great - I watched the entire video in one stretch!

  • @NU_ASampathRajaRaghupathi

    @NU_ASampathRajaRaghupathi

    5 жыл бұрын

    Suupeer

  • @arjunthakur6429

    @arjunthakur6429

    4 жыл бұрын

    Exactly brother....

  • @muneebmunu8311
    @muneebmunu83116 жыл бұрын

    Thank u misss

  • @SrinibashSethy
    @SrinibashSethy2 жыл бұрын

    Thanks a lot ma'am...

  • @mir3345
    @mir33455 жыл бұрын

    Watch it in 1.5x Thnk you😊

  • @appusabi8997

    @appusabi8997

    5 жыл бұрын

    broo i did the same and its was perfect😍😍😂😂😂

  • @digvijaysingh_97

    @digvijaysingh_97

    5 жыл бұрын

    2X

  • @musicmaniac3264

    @musicmaniac3264

    5 жыл бұрын

    2x best😂

  • @vireshgupta7508

    @vireshgupta7508

    4 жыл бұрын

    3.5X perfect

  • @inktober1771

    @inktober1771

    3 жыл бұрын

    1.75x🙂😝

  • @sripriyanagaraju7019
    @sripriyanagaraju70194 жыл бұрын

    Hi Dear You have to explain with real time example of abstraction and encapsulation with code

  • @nagendarchillamcharla2916
    @nagendarchillamcharla29165 жыл бұрын

    Mam first your write definitions and then explain please mam

  • @itspriyanka77
    @itspriyanka775 жыл бұрын

    explained very well 😊👍👌👌

  • @gayasree705

    @gayasree705

    Жыл бұрын

    Hloo

  • @chteja3403
    @chteja34034 жыл бұрын

    your explanation is easily understandable ... nice explanation mam and nice example encapsulation binds the data and function in a set the whole set is under a class encapsulation binds the data to the functions that only operate on the data inside it and protects the data inside the set from un intentional modification by the functions which are out side the set but inside the program but abstraction hides the background detailes from user like you told in your last example. methods are interface between the data or objects inside the set to the whole program in the program the objects out side the set can access the data or objects information inside the set by using methods

  • @chteja3403

    @chteja3403

    4 жыл бұрын

    kindly forgive me if their is any mistake

  • @gopikrishna6672
    @gopikrishna66725 жыл бұрын

    Clearcut explanation

  • @softfiscalpb674
    @softfiscalpb6745 жыл бұрын

    Muito boa sua explicação, obrigado por compartilhar seus conhecimentos.

  • @priyankabansode8702
    @priyankabansode87024 жыл бұрын

    I don't have the word to say 💞💞💞💞

  • @priyankabansode8702

    @priyankabansode8702

    4 жыл бұрын

    Nice lecture mam😊😊

  • @yesitsme5948
    @yesitsme59485 жыл бұрын

    Super mam

  • @Engr.MasoodAlam
    @Engr.MasoodAlam5 жыл бұрын

    Great

  • @venkatesh2285
    @venkatesh22855 жыл бұрын

    Can you please tell me how you recording your video ?? Please

  • @aayushman6138
    @aayushman61386 жыл бұрын

    encapsulation restricts accessibility of functionability into data!!!!!!!!!

  • @gopikaabhi2254
    @gopikaabhi22544 жыл бұрын

    Super

  • @esirkings4191
    @esirkings41916 жыл бұрын

    Did you say abstraction hides implementation details?? at kzread.info/dash/bejne/oKqm286Pk87HfLg.htmlm10s ? I would say it hides the Complexity instead.

  • @chandansharma324
    @chandansharma3244 жыл бұрын

    It may be good for exam,not for knowledge

  • @srikanthmoyya1429
    @srikanthmoyya14296 жыл бұрын

    Ok thanks but I want program in example

  • @hirenbhesaniya762
    @hirenbhesaniya7623 жыл бұрын

    KZread should have 5x playback speed option

  • @Everything-rn5qu
    @Everything-rn5qu4 жыл бұрын

    Nice but jruri ni English me hi bole aap dono mix boliye ...poori English me aap sahi se explain n kr paa rahi....your concept is goood thnku. ..notes are so helpful

  • @Jayamalinikumar
    @Jayamalinikumar9 ай бұрын

    Key abstraction and mechanism sole thaga mam

  • @johnjasva9502
    @johnjasva95023 жыл бұрын

    In terms of implementation, Encapsulation and Abstraction are doing the same thing.(hiding the details)

  • @messyhairs2934

    @messyhairs2934

    2 жыл бұрын

    no, Encapsulation hides everything but abstraction hides only those thing which r not necessary to know to the user.

  • @sekarmc4801
    @sekarmc48015 жыл бұрын

    👍

  • @dayakargurram6857
    @dayakargurram68573 жыл бұрын

    Good

  • @abhinavgulia8886
    @abhinavgulia8886 Жыл бұрын

    12:35 its fuels not feuls

  • @annurukulasekhar6564
    @annurukulasekhar65643 жыл бұрын

    MCA course subjects gurinci video pettandi madam

  • @sanazulfiqar5307
    @sanazulfiqar53075 жыл бұрын

    mam sorry to say but its oop not oops just for correction

  • @songfinale

    @songfinale

    5 жыл бұрын

    U r wrong... Okk bcoz its OOPS...

  • @sanskritijoshi6763

    @sanskritijoshi6763

    5 жыл бұрын

    Correct bete

  • @anchalmaurya5944

    @anchalmaurya5944

    5 жыл бұрын

    It's oops.

  • @modernfarmer883

    @modernfarmer883

    5 жыл бұрын

    @@sanskritijoshi6763 hahaha

  • @gmshyfulislam3710

    @gmshyfulislam3710

    5 жыл бұрын

    Oops

  • @Oxfordmgk
    @Oxfordmgk2 жыл бұрын

    I didn't understand anything

  • @rafiqueshaikh5361
    @rafiqueshaikh53615 жыл бұрын

    Mam program batau na is ke uper

  • @SivaPrasad-of3xg
    @SivaPrasad-of3xg5 жыл бұрын

    seeing in book and explaning

  • @ujjwalrawat9149
    @ujjwalrawat9149 Жыл бұрын

    Please change the ads in this video.

  • @harisbashir4620
    @harisbashir46206 жыл бұрын

    Nice pen

  • @findingyou6905

    @findingyou6905

    6 жыл бұрын

    haahahahah

  • @lonehumi8350

    @lonehumi8350

    5 жыл бұрын

    😂😂😂😉😂

  • @AnkitKumar-ge1dv
    @AnkitKumar-ge1dv5 жыл бұрын

    Mam its not writing.... Wrapping

  • @ujjvalw2684

    @ujjvalw2684

    5 жыл бұрын

    Really?

  • @Srijajulakanti
    @Srijajulakanti3 жыл бұрын

    1.75x = nrml . But gud explanation

  • @akgpian
    @akgpian4 жыл бұрын

    I think its bookish, please make an easy explaination

  • @Surya-Narang
    @Surya-Narang2 жыл бұрын

    Need more work

  • @barshabhattacharjee6788
    @barshabhattacharjee67883 жыл бұрын

    For more visit : kzread.info/dash/bejne/o2aGyaiBYdW2n9Y.html

  • @samotalis9696
    @samotalis96966 жыл бұрын

    Thank you madam

  • @pavan.nprabha9724

    @pavan.nprabha9724

    6 жыл бұрын

    Thank u mam

  • @rahul007tripathi
    @rahul007tripathi2 жыл бұрын

    7:38 present mam ki jagah pregnant mam bol diya 🌚

  • @ankurrunthala
    @ankurrunthala3 жыл бұрын

    Give logical exmaple s

  • @saifurrehman8951
    @saifurrehman89516 жыл бұрын

    Keep it up

  • @education4uofficial

    @education4uofficial

    6 жыл бұрын

    thank u

  • @AnilKumar-yr1pe
    @AnilKumar-yr1pe4 жыл бұрын

    dont read the internet data plz explain u r own

  • @balkrishna7641
    @balkrishna76416 жыл бұрын

    MY CONIFUSION IS REMOVE FROM THIS VIDEO

  • @ankitankur5093
    @ankitankur50934 жыл бұрын

    4 pillllllars

  • @alamfiroz11
    @alamfiroz115 жыл бұрын

    nice hand writing

  • @rupalramteke5346
    @rupalramteke53463 жыл бұрын

    confusing

  • @maheshjakkula5879
    @maheshjakkula58792 жыл бұрын

    Explain in Telugu

  • @sukritikumari7211
    @sukritikumari72114 жыл бұрын

    English ke bad hindi me ripit kijiye n mam please

  • @IndraTags
    @IndraTags3 жыл бұрын

    You are really trying hard to explain but your examples doesn't make sense

  • @haiderraniwala7765
    @haiderraniwala77655 жыл бұрын

    Easy kar ke pada na tha aur hard nai karna tha topic

  • @EhsanIrshad
    @EhsanIrshad6 жыл бұрын

    So much repetition of same concept

  • @greenthinking8533

    @greenthinking8533

    5 жыл бұрын

    open this link to read about concept of oops in c++ unacademy.com/lesson/overview-of-the-course-in-hindi/AOKYXTIM

  • @wajeehasiddiqi6878
    @wajeehasiddiqi68782 жыл бұрын

    difference between Encapsulation and abstraction in simple words with realtime examples if you don't understand with my example you are requested to dislike my comment fellows :) -------------------------------ENCAPSULATION:-------------------- In normal terms Encapsulation is defined as wrapping up of data and information under a single unit. In Object Oriented Programming, Encapsulation is defined as binding together the data and the functions that manipulates them. Consider a real life example of encapsulation, in a company there are different sections like the accounts section, finance section, sales section etc. The finance section handles all the financial transactions and keep records of all the data related to finance. Similarly the sales section handles all the sales related activities and keep records of all the sales. Now there may arise a situation when for some reason an official from finance section needs all the data about sales in a particular month. In this case, he is not allowed to directly access the data of sales section. He will first have to contact some other officer in the sales section and then request him to give the particular data. This is what encapsulation is. Here the data of sales section and the employees that can manipulate them are wrapped under a single name “sales section”. We can not access any function from class directly. We need an object to access that function which is using the member the variable of that class. The function which we are making inside the class ,it must use the all member variable then only it is called encapsulation. If we don’t make function inside the class which is using the member variable of the class then we don’t call it encapsulation. -----------------------------------------ABSTRACTION:------------------------- Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means displaying only essential information and hiding the details. Data abstraction refers to providing only essential information about the data to the outside world, hiding the background details or implementation. Consider a real life example of a man driving a car. The man only knows that pressing the accelerators will increase the speed of car or applying brakes will stop the car but he does not know about how on pressing accelerator the speed is actually increasing, he does not know about the inner mechanism of the car or the implementation of accelerator, brakes etc in the car. This is what abstraction is. Reference: GEEKS FOR GEEKS

  • @codeprac2299
    @codeprac22995 жыл бұрын

    not good explaination

  • @krohit65
    @krohit652 жыл бұрын

    Talk is cheap show me the code.

  • @bipulchandratiwari2270
    @bipulchandratiwari22705 жыл бұрын

    There is no word OOPS

  • @niranjansah8402
    @niranjansah84025 жыл бұрын

    Very poor explanation

  • @lekshmigopinath5736

    @lekshmigopinath5736

    5 жыл бұрын

    Niranjan Sah then you come and explain

  • @leichombamprashant3617
    @leichombamprashant36173 жыл бұрын

    Lol.... I think her concepts on encapsulation is not clear.. Need to study more before uploading teaching videos on KZread.

  • @abhinavsarma2336
    @abhinavsarma23363 жыл бұрын

    terrible explanation,you basically just read out the definition.

  • @shiroyasha69
    @shiroyasha692 жыл бұрын

    aapko padhane nhi aata

  • @xeno9035
    @xeno9035 Жыл бұрын

    bakwas explanation hat

  • @nischayrawat682
    @nischayrawat6824 жыл бұрын

    dont say nothing but again mam