OOP interview questions :- What is the difference between Abstraction and Encapsulation ?

Поделиться
HTML-код
  • Опубликовано: 8 дек 2011
  • For more such videos visit www.questpond.com
    See our other Step by Step video series below :-
    Learn angular tutorial for beginners tinyurl.com/ycd9j895
    Learn MVC Core step by step :- tinyurl.com/y9jt3wkv
    Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau
    Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
    Learn Xamarin Mobile Programming Step by Step :- goo.gl/WDVFuy
    Learn Design Pattern Step by Step in 8 hours:- goo.gl/eJdn0m
    Learn C# Step by Step in 100 hours :- goo.gl/FNlqn3
    Learn Data structures & algorithm in 8 hours :-tinyurl.com/ybx29c5s
    Learn SQL Server Step by Step in 16 hours:- tinyurl.com/ja4zmwu
    Learn Javascript in 2 hours :- tinyurl.com/zkljbdl
    Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
    Learn TypeScript in 45 Minutes :- goo.gl/oRkawI
    Learn webpack in 50 minutes:- goo.gl/ab7VJi
    Learn Visual Studio code in 10 steps for beginners:- tinyurl.com/lwgv8r8
    Learn Tableau step by step :- tinyurl.com/kh6ojyo
    Many developers are confused between Abstraction and encapsulation. If you see the definitions Abstraction means show only what is necessary and encapsulation means hide complexity which looks almost one and the same. In this video we will try to unlead practically the difference between Abstraction and Encapsulation.
    Get our 500 videos from www.questpond.com
    We are also distributing a 200 page Ebook ".NET Interview questions and Answers ". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on questpond@questpond.com with the shared link and we will email you the PDF.

Комментарии • 333

  • @dnfvideo
    @dnfvideo  2 года назад +3

    Do not miss our Interview Question video series
    30 Important C# Interview Questions : ruclips.net/video/BKynEBPqiIM/видео.html
    25 Important ASP.NET Interview Questions : ruclips.net/video/pXmMdmJUC0g/видео.html
    25 Angular Interview Questions : ruclips.net/video/-jeoyDJDsSM/видео.html
    5 MSBI Interview Questions : ruclips.net/video/5E815aXAwYQ/видео.html

    • @wyattzain5486
      @wyattzain5486 2 года назад

      You all probably dont give a damn but does anyone know of a method to log back into an Instagram account..?
      I stupidly forgot my login password. I love any assistance you can offer me

    • @mauricekaysen9783
      @mauricekaysen9783 2 года назад

      @Wyatt Zain Instablaster :)

    • @wyattzain5486
      @wyattzain5486 2 года назад

      @Maurice Kaysen i really appreciate your reply. I got to the site on google and Im in the hacking process atm.
      Takes quite some time so I will get back to you later when my account password hopefully is recovered.

    • @wyattzain5486
      @wyattzain5486 2 года назад

      @Maurice Kaysen it worked and I actually got access to my account again. I am so happy:D
      Thanks so much you saved my ass :D

    • @mauricekaysen9783
      @mauricekaysen9783 2 года назад

      @Wyatt Zain you are welcome xD

  • @osknyo
    @osknyo 4 года назад +36

    Not gonna lie for the first 3 mins I was questioning where this was going. Great vid.

  • @DeepayanDas24
    @DeepayanDas24 4 года назад +22

    Encapsulation: Data Hiding,
    Abstraction: Implementation hiding.
    Eg Getter/Setter methods are used to access encapsulated attribute data, similarly as in this video example calling a public method wherein other private methods would be executed, would be an abstraction.

    • @zilverman7820
      @zilverman7820 Год назад +1

      No, abstraction is only putting data that are only essential to the object. Encapsulation is data hiding.

    • @shubhamjain54519
      @shubhamjain54519 9 месяцев назад

      @DeepayanDas24 is correct

  • @naiche.
    @naiche. 7 лет назад +49

    Thank you for this video!
    TL;DW or for those who still might not understand:
    Abstraction: The concept of allowing the user of your class to have access to only what they need. (Concept)
    Encapsulation: The physical code that prevents the user from accessing fields or methods you do not want them to (Actual Implementation)
    Good example would be if a user is trying to deposit to an account balance. Account balances can't be negative or over 100,000, say. So your add function has a check. A user can circumvent these checks by saying obj.balance = -123;
    This is bad, so we want to use "Abstraction" to allow user access to only the things we want them to.
    So we make balance private, and now the user can only add through YOUR function. The act of making the field private and adding a modifier method is "Encapsulation".
    So as Manoj said, Encapsulation implements Abstraction.

    • @stannisbarracuda5693
      @stannisbarracuda5693 6 лет назад

      thanks man perfect explanation i understand

    • @kanedang5343
      @kanedang5343 5 лет назад

      You just gave the best explanation through a short and perfect example, thanks!

    • @selena4082
      @selena4082 4 года назад

      thank you so much.

    • @MCrystalMaidenn
      @MCrystalMaidenn 2 года назад

      I still don't understand. So if the user were to say obj.balance = -123, it wouldn't work becuase you have an add function that checks if its negative or over 100k. So in this case, we don't need to use abstraction because the user can't do anything if the given answer is not in the right criteria. Am I right?

  • @anoopkar1982
    @anoopkar1982 11 лет назад +7

    encapsulation is all about data hiding..... making properites private and making it accessible only through the behavious of the same object.. Thus providing necessary securty to the state of the object.. You cannot miss this point when u differentiate ans and enc.... all other points that you have told i completely agree

  • @umreddy4855
    @umreddy4855 4 года назад +5

    Thank you. This one video helped more than all the theory stuff I read on abstraction and encapsulation. Keep up the good work. Thanks again.

  • @kopilkaiser8991
    @kopilkaiser8991 Год назад +2

    I am regularly watching your videos to get theoretical and practical knowledge on C#. I would say I'm a junior developer coding for years but recently from mid of 2022, I took C# seriously. Your videos are helping me to elevate my understanding much higher, and being able to understand in depth. Thank you for your hard work. I will keep watching, share with others, and share my thoughts on each video unless I'm feeling lazy to comment.

  • @Nobo_On_The_Rocks
    @Nobo_On_The_Rocks 7 лет назад +4

    Yes practically it's very difficult to explain these two concepts, and this is the very basic. So it's important to get a better feel of these, from the beginning.
    Thanks.

  • @iortizvictory
    @iortizvictory 11 лет назад +3

    I really love this video. You've really done a brillant job explaining a difficult concept. Great job!

  • @ganeshchidambaram4452
    @ganeshchidambaram4452 3 года назад

    I have seen a number of videos in search of the difference between abstraction and encapsulation but this video is the best and I understood the concept : )Thank you sir.

  • @wendiilu02
    @wendiilu02 9 лет назад +3

    Thank you! I'm a student and this helped me so much understanding what abstraction and encapsulation is.

  • @ravikrishna5305
    @ravikrishna5305 8 лет назад +12

    And finally i came to know the difference btw Abstraction and Encapsulation.. :)
    Great Explanation Sir.. (y)

  • @ocsicnarf04
    @ocsicnarf04 8 лет назад +3

    my salute! thank you for this simple explanation. I'd say, it's very well explained.

  • @avlkanth68
    @avlkanth68 2 года назад

    That explanation was really good. Absolutely no confusion!
    Thank you very much!

  • @ianshumansingh
    @ianshumansingh 8 лет назад +2

    best video on abstraction,even stack-overflow could not make me understand..
    thank u

  • @muhammadwaqas6886
    @muhammadwaqas6886 5 лет назад +3

    Thank You soooo much Sir, you have cleared one of my biggest confusion in object oriented paradigm,thank you soooooo much.

  • @raushanthakur661
    @raushanthakur661 4 года назад +5

    In more than 20 interview I was asked differences and I never explained. Finally I got, Great man..

  • @pramood99
    @pramood99 3 года назад +1

    Perfect and exact explanation. I had too much confusion, now all cleared. Thanks

  • @joelgaiciyadu
    @joelgaiciyadu 2 года назад

    The last four minutes of the video, was what chnaged my mind. I loved the way you tabled it. Mean explanation. Thank you very much.

  • @mukeshtiwari9795
    @mukeshtiwari9795 9 лет назад +1

    Great Representation...And Today i get it in the glance of programming word, that how both works...

  • @karumpilhouse
    @karumpilhouse 12 лет назад +14

    The best explanation i ever heard... perfect and clear...!

  • @HassaanRaza
    @HassaanRaza 6 лет назад

    THE BEST Explanation, detailed and on point!

  • @ManojDeshwal
    @ManojDeshwal 3 года назад +22

    This video gives the exact clarity what I was looking for. No confusion now between abstraction and encapsulation 🙂👍👍

    • @shivakumar-ep7gf
      @shivakumar-ep7gf 2 года назад

      I seen your Video sir It is understanding Clearly.......

  • @vijayshrivastava9803
    @vijayshrivastava9803 8 лет назад +2

    this video actually made me understand the difference.. superb...

  • @somesbhowmick2082
    @somesbhowmick2082 8 лет назад

    Really excellent videos you have created. before you I does not have find such meaning full and clear concept from any other tutorials or videos. Thanks a lot. You really know what actually needs a senior and Junior developer in current days. I purchase your videos and getting preparation on that.

  • @phanikumar3140
    @phanikumar3140 10 лет назад +1

    Thank you very much for the video.. I use to have a lot of confusion between abstraction and encapsulation before. Now it is pretty much clear. Once again thank u :-)

  • @swbharatbansal
    @swbharatbansal 6 лет назад +1

    Nice Explanation!!! Thank you for clearing my confusion about this difference,

  • @DaBBoSaH
    @DaBBoSaH 10 лет назад

    wow this is fantastic!! There is also the idea that we can deal with Car regardless of its subtype, whether Ford, or Fiet... that detail can be abstracted away...

  • @SinghDilip-hz1iq
    @SinghDilip-hz1iq 5 лет назад +1

    Now, I've got what's the abstraction n encapsulation.... Really nice video.. thnx

  • @zealoussuresh
    @zealoussuresh 10 лет назад +2

    Wow ! Great practical explanation !

  • @soumalyasahoo2664
    @soumalyasahoo2664 3 года назад

    It really took a long time to understand the difference between them..they always appeared the same to me..but now...now i understand...thanks

  • @zuzuba3481
    @zuzuba3481 4 года назад

    You are really great bro.. really extraordinary.. I saw lots of others videos.. but you are ultimate...

  • @jeffryjoseph5596
    @jeffryjoseph5596 3 года назад

    Thanks for your clarification..i searched the whole internet and i found this video answering my question.

  • @climatecautious4210
    @climatecautious4210 2 года назад

    You freed me of confusions! Great job

  • @aloktripathi1502
    @aloktripathi1502 7 лет назад +1

    Thank you sir, Its very helpful to me and clear the confusion about both very similar topic.

  • @mayurnerkar9682
    @mayurnerkar9682 3 года назад

    Sir...! This is *Great* explanation given for those two terms Thank You so much!

  • @SaurinVala87
    @SaurinVala87 5 лет назад

    Best and simplest explanation of attraction and encapsulation.

  • @mahendramungamuru9500
    @mahendramungamuru9500 4 года назад +1

    Really beautiful expalination my complete confusion is vanished by this video thank you very much .....:-)

  • @aishwaryanand600
    @aishwaryanand600 10 лет назад

    yours videos are the best video to understand the basics of .NET.Very Good.Keep it up.

  • @Ruhinaify
    @Ruhinaify 12 лет назад +1

    i was really good... i have never seen somebuddy explaing these concepts that nicely...

  • @akshayr6281
    @akshayr6281 5 лет назад +30

    Abstraction is thought process, and Encapsulation is Real Implementation.

    • @notanonymous3976
      @notanonymous3976 3 года назад +3

      @Jack Wells no it didnt you guys are a bunch of liars

  • @devd5820
    @devd5820 2 года назад

    what an explanation!! best ever..Shiv Sir is always the best

  • @nagarajumanupuri844
    @nagarajumanupuri844 10 лет назад

    Thank u so much..... I am one of the developer who will confuse these terms always.. You cleared all my questions

  • @ajitkumar15
    @ajitkumar15 5 лет назад

    Nice video to remove such a confusing topic. Thanks a million !!

  • @moolikethecow1172
    @moolikethecow1172 8 лет назад +1

    Very well explained. Thank you!

  • @joolakataka
    @joolakataka 4 года назад

    Cool really simple explanation on abstraction and encapsulation.

  • @anikbutt22
    @anikbutt22 12 лет назад +1

    very much clear..awesome session.. thank you alot.

  • @hellsing357
    @hellsing357 12 лет назад +1

    wow
    the explanation is
    crystal clear
    Thank you sir...
    More powers

  • @peter1983nabagram
    @peter1983nabagram 8 лет назад +1

    Best Explanation I can think off

  • @Sunil.Pal789
    @Sunil.Pal789 8 лет назад +1

    excellent video....very easy to understand concept

  • @rfdave3980
    @rfdave3980 Год назад

    Sir you have made this so clear. Thank you

  • @jesusstudentbrett
    @jesusstudentbrett 2 года назад

    One word... Excellent!!

  • @mcm1024
    @mcm1024 12 лет назад

    These are great videos. You are a good teacher.

  • @ayeshawaheed8791
    @ayeshawaheed8791 3 года назад

    A very useful explanation! Thank you!

  • @erfanmoghaddam4491
    @erfanmoghaddam4491 5 лет назад +1

    Thanks a lot sir for this very clear explanation!

  • @rajsoftthink
    @rajsoftthink 7 лет назад +2

    Nice explanations and thanks a lot for your effort... :)

  • @hafsamalik5219
    @hafsamalik5219 Год назад

    You Perfectly clarify my confusion🌼

  • @psalt21
    @psalt21 7 лет назад +1

    Well done! This helped me very much

  • @handover007
    @handover007 10 лет назад

    very nicely explained ..an eye opener..

  • @sumithrapackirisamy7462
    @sumithrapackirisamy7462 2 года назад

    Awesome Sir I learned very clearly what exact abstract and encapsulation

  • @syafiighazali
    @syafiighazali 2 года назад

    Brilliant explanation, thanks so much 🙌

  • @skeiltte
    @skeiltte 8 лет назад +1

    Brilliant explanation! Thank you so much. =)

  • @ms.abhasaxena7249
    @ms.abhasaxena7249 3 года назад

    Finally, I understood. Thank you!

  • @silverHawk2001
    @silverHawk2001 12 лет назад

    Beautifully explained.

  • @khurshidmalik565
    @khurshidmalik565 2 года назад

    Thank you so much, Sir. It gives a clear understanding

  • @Ravikantsharma01
    @Ravikantsharma01 11 лет назад

    one interviewer asked me to show the abstraction in coding on a paper , but i failed as i had known only the verbal answer that's it , but this video made my day.
    thank you a lot.....

  • @vishnukumar-zn6di
    @vishnukumar-zn6di Год назад

    Clear and simple, Thank You

  • @avinashtippe1113
    @avinashtippe1113 2 года назад

    Simple and clear.. thanks for video

  • @rakeshdas32
    @rakeshdas32 3 года назад

    Now way better to understand. Thanks for the video.

  • @SwapnilJadhavLive
    @SwapnilJadhavLive 2 года назад

    You have helped me clear this concept 🤗

  • @SunilSingh-kc4nh
    @SunilSingh-kc4nh 4 года назад

    this was the best way to differentiate Encapsulation and Abstraction

  • @EminoMeneko
    @EminoMeneko 3 года назад

    Definitions are at 9:43
    Not sure I wouldn't need more docs to complete.
    Nice video thought. Got me closer to understand.

  • @MuhammadUsman-rp3ph
    @MuhammadUsman-rp3ph 5 лет назад +1

    I appreciate it.. Great explaination

  • @mareeduharish
    @mareeduharish 11 лет назад

    Superb demonstration boss.

  • @anandrajput007
    @anandrajput007 10 лет назад +3

    nice work...

  • @ravidas-bg4mq
    @ravidas-bg4mq 6 лет назад

    good work...sir
    it shows sharing is caring....keep going

  • @HISUPRIYO
    @HISUPRIYO 3 года назад

    One of the best explanation...👍

  • @obaymardini
    @obaymardini 9 лет назад +1

    thanks, great demonstration

  • @andrewg9987
    @andrewg9987 8 лет назад +1

    Very nice job!

  • @manishswaminath
    @manishswaminath 10 лет назад +2

    Superb !!!!!!!!! cleared doubt of Abstraction and encapsulation ..Really Great Sir..

  • @coolsee07
    @coolsee07 11 лет назад +1

    very well explained.. thank you...

  • @ramagirisrikanth3583
    @ramagirisrikanth3583 7 лет назад

    very good example and explanation ! thnk u!

  • @prateekpk7240
    @prateekpk7240 10 лет назад

    Very useful videos! Thanks!

  • @cvismenu
    @cvismenu 8 лет назад +1

    Amazing tutorial

  • @mqutub15
    @mqutub15 10 лет назад +1

    This is excellent. Great and clear explanation. Thank you very much.

  • @shwetakota
    @shwetakota 7 лет назад

    Thank you for your videos. much helpful.

  • @prakashpk6311
    @prakashpk6311 5 лет назад

    Excellent explanation buddy!

  • @arvindsrinivas786
    @arvindsrinivas786 11 лет назад

    nicely explained. Great job

  • @wajidsofteng6263
    @wajidsofteng6263 3 года назад

    Love from Pakistan sir Out standing you explained it. I really confused in these both.

  • @dev_brand
    @dev_brand 5 лет назад +1

    Thank you fot the great explanation!

  • @sbhurke1
    @sbhurke1 10 лет назад

    Awesome video Find very Useful

  • @anoopchandranful
    @anoopchandranful Год назад

    Very nicely explained , thank you sir

  • @rajendra_K_
    @rajendra_K_ 3 года назад

    Thanks for short and sweet explanation :)

  • @WoundedEgo
    @WoundedEgo 12 лет назад +1

    Very clear, thanks!

  • @paulofernandoee
    @paulofernandoee 2 года назад

    Great vídeo, congratulations

  • @narendarsingh4672
    @narendarsingh4672 3 года назад

    Great 👌 no one as you

  • @YogeshDhanayat
    @YogeshDhanayat 8 лет назад +1

    great work
    thanks for this

  • @sarikabiwalkar4037
    @sarikabiwalkar4037 7 лет назад

    such a good video to understand!

  • @souriroy5466
    @souriroy5466 6 лет назад

    great description

  • @bunu88
    @bunu88 7 лет назад

    awesome explanation