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.
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
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
@Wyatt Zain Instablaster :)
@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.
@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
@Wyatt Zain you are welcome xD
Not gonna lie for the first 3 mins I was questioning where this was going. Great vid.
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.
No, abstraction is only putting data that are only essential to the object. Encapsulation is data hiding.
@DeepayanDas24 is correct
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.
thanks man perfect explanation i understand
You just gave the best explanation through a short and perfect example, thanks!
thank you so much.
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?
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
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.
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.
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.
I really love this video. You've really done a brillant job explaining a difficult concept. Great job!
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.
Thank you! I'm a student and this helped me so much understanding what abstraction and encapsulation is.
And finally i came to know the difference btw Abstraction and Encapsulation.. :)
Great Explanation Sir.. (y)
my salute! thank you for this simple explanation. I'd say, it's very well explained.
That explanation was really good. Absolutely no confusion!
Thank you very much!
best video on abstraction,even stack-overflow could not make me understand..
thank u
Thank You soooo much Sir, you have cleared one of my biggest confusion in object oriented paradigm,thank you soooooo much.
In more than 20 interview I was asked differences and I never explained. Finally I got, Great man..
to yr padh leta phle interview k baad hi
Perfect and exact explanation. I had too much confusion, now all cleared. Thanks
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.
Great Representation...And Today i get it in the glance of programming word, that how both works...
The best explanation i ever heard... perfect and clear...!
THE BEST Explanation, detailed and on point!
This video gives the exact clarity what I was looking for. No confusion now between abstraction and encapsulation 🙂👍👍
I seen your Video sir It is understanding Clearly.......
this video actually made me understand the difference.. superb...
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.
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 :-)
Nice Explanation!!! Thank you for clearing my confusion about this difference,
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...
Now, I've got what's the abstraction n encapsulation.... Really nice video.. thnx
Wow ! Great practical explanation !
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
You are really great bro.. really extraordinary.. I saw lots of others videos.. but you are ultimate...
Thanks for your clarification..i searched the whole internet and i found this video answering my question.
You freed me of confusions! Great job
Thank you sir, Its very helpful to me and clear the confusion about both very similar topic.
Sir...! This is *Great* explanation given for those two terms Thank You so much!
Best and simplest explanation of attraction and encapsulation.
Really beautiful expalination my complete confusion is vanished by this video thank you very much .....:-)
yours videos are the best video to understand the basics of .NET.Very Good.Keep it up.
i was really good... i have never seen somebuddy explaing these concepts that nicely...
Abstraction is thought process, and Encapsulation is Real Implementation.
@Jack Wells no it didnt you guys are a bunch of liars
what an explanation!! best ever..Shiv Sir is always the best
Thank u so much..... I am one of the developer who will confuse these terms always.. You cleared all my questions
Nice video to remove such a confusing topic. Thanks a million !!
Very well explained. Thank you!
Cool really simple explanation on abstraction and encapsulation.
very much clear..awesome session.. thank you alot.
wow
the explanation is
crystal clear
Thank you sir...
More powers
Best Explanation I can think off
excellent video....very easy to understand concept
Sir you have made this so clear. Thank you
One word... Excellent!!
These are great videos. You are a good teacher.
A very useful explanation! Thank you!
Thanks a lot sir for this very clear explanation!
Nice explanations and thanks a lot for your effort... :)
You Perfectly clarify my confusion🌼
Well done! This helped me very much
very nicely explained ..an eye opener..
Awesome Sir I learned very clearly what exact abstract and encapsulation
Brilliant explanation, thanks so much 🙌
Brilliant explanation! Thank you so much. =)
Finally, I understood. Thank you!
Beautifully explained.
Thank you so much, Sir. It gives a clear understanding
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.....
Clear and simple, Thank You
Simple and clear.. thanks for video
Now way better to understand. Thanks for the video.
You have helped me clear this concept 🤗
this was the best way to differentiate Encapsulation and Abstraction
Definitions are at 9:43
Not sure I wouldn't need more docs to complete.
Nice video thought. Got me closer to understand.
I appreciate it.. Great explaination
Superb demonstration boss.
nice work...
good work...sir
it shows sharing is caring....keep going
One of the best explanation...👍
thanks, great demonstration
Very nice job!
Superb !!!!!!!!! cleared doubt of Abstraction and encapsulation ..Really Great Sir..
very well explained.. thank you...
very good example and explanation ! thnk u!
Very useful videos! Thanks!
Amazing tutorial
This is excellent. Great and clear explanation. Thank you very much.
mqutub15 great
Thank you for your videos. much helpful.
Excellent explanation buddy!
nicely explained. Great job
Love from Pakistan sir Out standing you explained it. I really confused in these both.
Thank you fot the great explanation!
Awesome video Find very Useful
Very nicely explained , thank you sir
Thanks for short and sweet explanation :)
Very clear, thanks!
Great vídeo, congratulations
Great 👌 no one as you
great work
thanks for this
such a good video to understand!
great description
awesome explanation