Object-oriented Programming in 7 minutes | Mosh

Get the COMPLETE COURSE: bit.ly/2keDCna
4 pillars of object-oriented programming: encapsulation, abstraction, inheritance and polymorphism.
Subscribe for more videos:
/ @programmingwithmosh
Want to learn more from me? Check out my blog and courses:
codewithmosh.com
programmingwithmosh.com
/ programmingwithmosh
/ moshhamedani

Пікірлер: 1 300

  • @dizelvinable
    @dizelvinable4 жыл бұрын

    Finally an example of OOP without a car! Thank you!

  • @xfire3778

    @xfire3778

    3 жыл бұрын

    Сидредин this was a good one

  • @mintes_son

    @mintes_son

    3 жыл бұрын

    1:20 - 1:25 is a car example

  • @shivangchaturvedi237

    @shivangchaturvedi237

    3 жыл бұрын

    Haha.. there is no oops without a car example

  • @ghostinthewires7006

    @ghostinthewires7006

    3 жыл бұрын

    @@shivangchaturvedi237 there is...with animals

  • @reihanerahnamaee4155

    @reihanerahnamaee4155

    3 жыл бұрын

    :))))

  • @chrisaga6253
    @chrisaga62532 жыл бұрын

    1:02 Encapsulation 3:29 Abstraction 4:41 Inheritance 5:27 Polymorphism

  • @pheladishaks6226

    @pheladishaks6226

    2 жыл бұрын

    Thank you 😊

  • @olyaadTube

    @olyaadTube

    2 жыл бұрын

    Thanks

  • @xxxxxGhostBoyxxxxx
    @xxxxxGhostBoyxxxxx3 жыл бұрын

    God level explanation. Like seriously. I was a graduate in Software Engineering but when I watched this like a revelation to me. LOL. thank you good sir.

  • @shivashishpal7321

    @shivashishpal7321

    2 жыл бұрын

    Same feeling here

  • @bolt2009

    @bolt2009

    2 жыл бұрын

    How

  • @imantodeinkhilafat856

    @imantodeinkhilafat856

    2 жыл бұрын

    You will never understand the level of your God. God is one who make everyone. God is Allah

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    Hopefully you caught some of the mistakes. Not sure God would makes those types of mistakes. I found two and only watched a couple of minutes of it this time.

  • @blackberry5908

    @blackberry5908

    2 жыл бұрын

    The OP comment is so cringe.

  • @bapple7844
    @bapple78443 жыл бұрын

    Computer scientists: "ah yes this is an implementation of polymorphism and encapsulation" Also Computer Scientists: "This some spaghetti code right here"

  • @PavanKumar-pn2tc
    @PavanKumar-pn2tc2 жыл бұрын

    Encapsulation : grouping related variables and functions operating on them. (Reduce complexity) Abstraction: hiding complex data and methods from user (simple interface) Polymorphism: many forms .. to avoid long if else statements RENDER Inheritance: inherent the qualities of a code (to remove redundant code)

  • @thallesaraujo7814
    @thallesaraujo78145 жыл бұрын

    I have tried many times to understand what object oriented programming really is. This was the first successful try. Thanks and congrats for the very high quality video!

  • @danny3036

    @danny3036

    4 жыл бұрын

    100% Agreed - Great job Mosh Thank you.

  • @srikanthpen3250

    @srikanthpen3250

    3 жыл бұрын

    Just go through the libraries and the namespaces used in linux code. Thats the best way to understand OOPs. When C++ compiler can covert that c code and layout into OOPs only then we can totally understand how OOPs is being handled.

  • @meghnaverse

    @meghnaverse

    3 жыл бұрын

    @@srikanthpen3250 where can we learn that from? I mean what would you recommend?

  • @Lana-gi7ox

    @Lana-gi7ox

    3 жыл бұрын

    100% agreed!!

  • @sagessemusic5391

    @sagessemusic5391

    3 жыл бұрын

    You need to learn more about Java animation and Graphics

  • @aroxing
    @aroxing3 жыл бұрын

    For me encapsulation is not only about storing properties together and decreasing number of arguments, but what is more important it is all about HIDING implementation details and PROTECTING code from random access. At the same time abstraction is about ignoring unimportant parts of objects providing only essential interface for 'outer world'.

  • @rahulj2167

    @rahulj2167

    3 жыл бұрын

    I learned it that way, I was a bit confused here.

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    This video has other errors, too.

  • @thinkersandimaginers6334

    @thinkersandimaginers6334

    2 жыл бұрын

    You learned from herbet schidlt book??

  • @aroxing

    @aroxing

    2 жыл бұрын

    @@thinkersandimaginers6334 It's just from my personal experience,

  • @sudaneeinamharic5891

    @sudaneeinamharic5891

    Жыл бұрын

    you just repeated what he said

  • @erikschiegg68
    @erikschiegg686 жыл бұрын

    Hey, if you you watch the video in double speed, you master oop in even three and a half minutes!

  • @ahmedtamer4620

    @ahmedtamer4620

    5 жыл бұрын

    It worked actually xD

  • @nooralfath5341

    @nooralfath5341

    5 жыл бұрын

    lol XD

  • @icodetoomuch

    @icodetoomuch

    5 жыл бұрын

    Good point xD

  • @haseebahmed6278

    @haseebahmed6278

    5 жыл бұрын

    Hahaha

  • @94D33M

    @94D33M

    5 жыл бұрын

    same buddy

  • @FiReOaNdDeMoS2121
    @FiReOaNdDeMoS21214 жыл бұрын

    OMG everything just clicks and makes so much sense, thank you for making this video

  • @julianagrutzmann2223
    @julianagrutzmann22233 жыл бұрын

    What a simple and illustrative way of explaining OOP. I love your videos, Mosh. Keep up the exceptional work!

  • @paisleybunk9352
    @paisleybunk93526 жыл бұрын

    Finally a video explaining OOP that is well organized, thorough, and applies it to real programming examples. THANK YOU.

  • @zarakhaliq6163
    @zarakhaliq61633 жыл бұрын

    I just looked at so many different explanations of OOP for my interview prep including the "simple for even a child" freecodecamp explanation but this one is by far the best one! Great work. Thanks :)

  • @talidan3421
    @talidan34214 жыл бұрын

    Memory trick: "Oops I ate A PIE" A - Abstraction P - Polymorphism I - Inheritance E - Encaspulation thumbs up to help someone out

  • @ivybrandyn

    @ivybrandyn

    4 жыл бұрын

    I memorized it the same way! :))

  • @ADevStory

    @ADevStory

    4 жыл бұрын

    hahaha really nice mnemonic trick!

  • @shayanshaikh534

    @shayanshaikh534

    4 жыл бұрын

    Haha thanks!

  • @plamennakoleva3726

    @plamennakoleva3726

    4 жыл бұрын

    thank you for this! :)

  • @stevencvisuals

    @stevencvisuals

    4 жыл бұрын

    I just remember it!?

  • @robertstimmel1100
    @robertstimmel11003 жыл бұрын

    Great video! I am trying to teach myself C# and I really struggle to research certain things when I get stuck because I don't know the name of the concept that I need to look into. This video lays a lot of the groundwork in simple and concise terms. Thank you!!!

  • @Broughtvulture
    @Broughtvulture5 жыл бұрын

    This video cleared up the fog I had when it came to Object Oriented programming. Thanks man. It feels like I've broken down huge barrier.

  • @btkcodedev
    @btkcodedev2 жыл бұрын

    With Encapsulation: Resides Object oriented programming backbone of encapsulating data and functions into single unit called object With Abstraction: We reduce the impact of change in other objects With Inheritance: We can eliminate redundant code With polymorphism: We can refactor codes according to different types in simple manner

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    You got the definition of Abstraction wrong, and your definition of Polymorphism is not quite right. You wouldn't be refactoring anything to achieve poly.

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    Those aren't very good definitions, though. Your definition of abstraction is incorrect. And polymorphism can be acheived before any "refactoring".

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    @@kcs3248 But that's not really what polymorphism is. You don't have to refactor anything, and who knows what in the world he meant by "according to different types". Types of what? One of his other definitions was also not right. Just be careful what you read if you are trying to learn OOP. There's a lot of impressive-looking videos about OOP and many of them are wrong.

  • @geetapatil2680
    @geetapatil26806 жыл бұрын

    Hi Mosh.. Really your videos are smooth understandable...Thanks

  • @ilyakortasov2637
    @ilyakortasov26375 жыл бұрын

    I have been Googling these concepts almost all day yesterday. Now this short video and that is it, I get it now :) I guess you made my day!!!

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    The harsh reality is, though, that you probably don't understand from watching this video to pass an OOP exam. It takes years to get to a professional level of understanding of OOP. It's a major dedication, as opposed to something that can abstracted and encapsulated into a short video. And that's not even telling you that this video contains errors, despite the speaker's voice being very confident.

  • @andreisas9649
    @andreisas96495 жыл бұрын

    This is the simplest, precise and easy to understand explanation I have found until now.

  • @mccama19
    @mccama195 жыл бұрын

    Thank you for focusing in this one topic, I've been having a hard time wrapping my head around this. Your video really helped.

  • @m.u.550
    @m.u.5506 жыл бұрын

    What a brilliant Video! Thank you!

  • @spaceageexp8679
    @spaceageexp86792 жыл бұрын

    I'm currently in Programming II at my college which is specifically an object oriented programming class. This video really helped me see what my current class is about. Thanks!

  • @noo-sho8500
    @noo-sho85005 жыл бұрын

    Finally someone explains it casually and clearly! Thanks a lot!

  • @matychp
    @matychp4 жыл бұрын

    The best explanation about the 4 pillars of OOP that I watched in my life, ty Mosh!.

  • @rany21
    @rany215 жыл бұрын

    Well done. Thanks for sharing this content. Simple and easy to follow.

  • @HCEveningWalk
    @HCEveningWalk5 жыл бұрын

    Wish f**king college textbooks were as short and straightforward! Thanks for the upload Mosh!

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    5 жыл бұрын

    You just want things to be easier than they are. You are probably the type that is going to lie on your resume.

  • @metaparalysis3441

    @metaparalysis3441

    4 жыл бұрын

    @tiluu you mean people that created child labour

  • @Heisenberg355

    @Heisenberg355

    3 жыл бұрын

    @@HOWYOUDOIN884 I partly agree, but I've seen many times, that teachers and professor deepdive into very subtle details before explaining the whole picture simplified. This is not how you teach things. A video like this before getting into details would help many people understand topics way faster and better

  • @angelomartino4667

    @angelomartino4667

    3 жыл бұрын

    @@Heisenberg355 exactly

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    @@One.Zero.One101 I didn't miss the point of what the guy was saying: "College text books are too hard". OOP takes years to get good at, assuming one's brain is worthy of the challenge and the commitment. And yes, I'm tired of people lying on their resume claiming to be good at OOP, when in reality they were just intrigued by a fancy KZread video and have just dabbled in writing classes . I saw one misuse of the word "interface", and then jumped a little past half way and found another mistake @ 4:39 (confusing abstraction with encapsulation). So as pleasing as it may appear to a newbie, they easily could walk away misinformed. It's easy to be attracted to easy material, indeed, but it's also easy to be misinformed and not realize it. That's my complaint about the majority of people who quickly fall in love with an educational video, not realizing the information is not quite right. I think people should read OOP books written by authors with well-established expertise, and not be so attracted to fancy youtube vids.

  • @mehrshadsoltani1165
    @mehrshadsoltani11654 жыл бұрын

    you're insane man. i'm reaaaaaly proud of having a compatriot like you. you know our difficulties from iran. for example i can't buy your tutorials. so i will be reeeaaallly thankfull if you publish more contents with us.

  • @harbisetyonugroho2312
    @harbisetyonugroho23122 жыл бұрын

    Thanks, Mosh! I learned a lot! I just learned to code recently, but I am really passionate about it. I hope I can always be a better programmer over time.

  • @Farreach
    @Farreach4 жыл бұрын

    as a CS major who is in my Senior year.. this is a great clean & concise explanation on the basics of OOP...I came to this video for a refresher since this is material we went over my first year ....I rarely use OOP but i definitely should ..would of made my life at Uni so much easier

  • @archiewoosung5062

    @archiewoosung5062

    4 жыл бұрын

    "of" is not a verb

  • @debrachambers1304

    @debrachambers1304

    Жыл бұрын

    *have

  • @saynotoid

    @saynotoid

    6 ай бұрын

    "of" as in "because of" imho @@archiewoosung5062

  • @tiffanymclean4
    @tiffanymclean44 жыл бұрын

    I love your videos! There always so easy to follow and understand. This one definitely didn't disappoint!

  • @aaronstone_9965
    @aaronstone_99653 жыл бұрын

    This was so needed. There's tons of material out there explaining OOP. But usually the explanation is either vague or a bit impractical. Congratulations for not beating about the Bush and yet not missing anything important.

  • @shsoh6726
    @shsoh67264 жыл бұрын

    Mosh, I read lots of OOP books, you just extracted all the useful contents out of it and translated it in simple words with no jargon. Damet warm.

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    But you didn't notice the glaring mistakes? The part on abstraction is about 99% wrong.

  • @georgechristovich6239
    @georgechristovich62392 жыл бұрын

    Nice work. I have no doubt that you are a competent programmer, but more importantly as a teacher, you are a gifted presenter. I usually have to watch tutorials at 1.75 - 2.0 times normal playback to keep from stabbing my eyes out. Your tutorials are actually enjoyable at normal playback speed. Thank you.

  • @sumant9189
    @sumant91894 жыл бұрын

    My God... 7 minutes and alot of things in detail. Thanks Mosh.

  • @jak9777
    @jak97775 жыл бұрын

    I understood more about these concepts in 7mins than 2 hours with my teacher. Thanks!

  • @user-cy3je1xd1c
    @user-cy3je1xd1c4 жыл бұрын

    That's the best video I've ever seen about OOP. Here I found lot of info I coudn't find at other sources! Thank you so much!

  • @voodoochili12
    @voodoochili125 жыл бұрын

    Best example of encapsulation I've ever seen, thank you

  • @Andrea-np3dh
    @Andrea-np3dh5 жыл бұрын

    This is the best, clearest explanation I've seen so far... Thank you!!!

  • @rayword2794

    @rayword2794

    4 жыл бұрын

    I agree!

  • @hasancheckman416
    @hasancheckman4164 жыл бұрын

    Best description among many and many text books and papers that I have read or videos I have watched. Thank you Mosh!

  • @kenfranklin9344
    @kenfranklin93445 жыл бұрын

    Excellent video! This was the straight-forward and precise explanation I was looking for!!

  • @muhammadamir4964
    @muhammadamir49646 жыл бұрын

    Mind Opening, Informative, pactical

  • @juliorodriguez4946
    @juliorodriguez49465 жыл бұрын

    flawlessly explained. Thank you, Mosh.

  • @poloska9471
    @poloska94715 жыл бұрын

    Very grateful for your work on this clear, pleasant and informative video. I am new to programming and decided to start off by learning Python. When I began learning about it I found out it is a object-oriented language and scratched my head not understanding what that even implies... After watching this video, I can now go back to learning with clarity. Thank you! Subscribed and thumbs up!

  • @leonelp9593
    @leonelp95934 жыл бұрын

    i officially declare this as the best POO intro i ever saw in my life thankssss so much my friend!!

  • @benzymatic
    @benzymatic2 жыл бұрын

    Woah that DVD player metaphor is outstanding. I’ve been really struggling with wrapping my head around OOP but that metaphor really helped things click for me. Well done, and subscribed! Looking forward to checking out your python vids!

  • @clerpington_the_fifth

    @clerpington_the_fifth

    Жыл бұрын

    yep, you can think of the dvd player as a class, and the buttons on the dvd player as methods inside that class

  • @togfanatic3781

    @togfanatic3781

    9 ай бұрын

    ​@@clerpington_the_fifth thanks but what are the properties ?

  • @ShunguRocks
    @ShunguRocks2 жыл бұрын

    Thank you Mosh, I really enjoyed this concise and clear video. I understand what OOP is now and can’t wait to get to that topic in my learning. I have just started learning to code in Python.

  • @hs_harsh
    @hs_harsh6 жыл бұрын

    This is only of the best one can find! Thank you so much. :)

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

    Encapsulation is just not about making variables private, it is much more. It is about breaking up the application into different logical and organized parts. So that you can change one part without generally changing all the other parts. Therefore encapsulate the parts that vary from the parts that remain the same.

  • @ifstatementifstatement2704
    @ifstatementifstatement27044 жыл бұрын

    Been programming for 22 years and going to try OOP for the first time. Looks like it will make my programming easier in some aspects. All this time I got away with procedural programming and my current job (programming automation) does not need me knowing OOP but I hope to get a job in software engineering, and I feel OOP is a must to master.

  • @eritert

    @eritert

    8 ай бұрын

    How is it going now?

  • @kuyafrex480
    @kuyafrex4805 жыл бұрын

    I'm already applied these concepts in my code without even knowing the terms for that. At least now I know

  • @hugopfeffer4175
    @hugopfeffer41754 жыл бұрын

    Your sketch showing object property as variables and methods as functions really sparked a light in my brain. Thanks.

  • @sneakyniek
    @sneakyniek5 жыл бұрын

    Clear, complete and straight to the point, thanks!

  • @sneakyniek

    @sneakyniek

    5 жыл бұрын

    @Sergio Díaz Nila Didn't know that, thanks for the tip Sergio!

  • @MrValdesbg
    @MrValdesbg2 жыл бұрын

    This is the first ever video that I watch about OOP, in fact this is the first ever information I learn about the OOP. Honestly speaking - I grasped the general idea. After watching it two more times I think I understood the concepts. From a single video from the first time. Thank you, Mosh! Thank you for braking down the complex matter into easily digestible bite sized bits.

  • @adeelkhan9636
    @adeelkhan96365 жыл бұрын

    your way of teaching .....awsome man..very well explanation..!!

  • @kennethweerasinghe6501
    @kennethweerasinghe65014 жыл бұрын

    I am trying to learn some programming and your video presentation is wonderful! Thank you !

  • @mateusloubach
    @mateusloubach2 жыл бұрын

    the BEST channel for programming explanation. even the easy english words are explained!

  • @martynaskir7852
    @martynaskir78525 жыл бұрын

    One of the best explanations about the subject. Well structured and easy to follow.

  • @southern_smacker
    @southern_smacker5 жыл бұрын

    Amazing... I never found such easy and to-the-point explanation of OOP Principles as Mosh described in only 7 minutes.

  • @jaytin3932
    @jaytin39322 жыл бұрын

    Thank you so much for this, the video is about object oriented but it also made me understand what an structured program is. This is also incredibly easy to understand.

  • @gregsonnawahin6251
    @gregsonnawahin62513 жыл бұрын

    To be honest, I like every tutorial of you on programming. In PNG the university dont have such a lecturer that can explain in the lectures room the way you explain in all your upload tutorial its amazing.

  • @7Trident3
    @7Trident34 жыл бұрын

    That was a lot of info to cram into 7 min. Bravo!!!!

  • @roopashree3545
    @roopashree35455 жыл бұрын

    This is the best video on oops that I watched till now . Thank you Mosh. You made our life easy by showing oops s this easy to understand 👏👏

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    2 жыл бұрын

    But in reality, you couldn't watch this video and pass a test over OOP. Not to mention the mistakes in the video, where he uses the wrong word, like "abstraction", which has nothing to do with reducing impact of change. So in reality, just because this video made you feel good, you have a long road ahead of you to become an expert at OOP.

  • @JotoheKian
    @JotoheKian3 жыл бұрын

    I don't even know why I'm watching OOP-oriented videos - I was simply searching for UE4 Blueprints tutorials, so only loosely related topic - but that was a very solid explanation. Thank you, I'm glad I've watched it.

  • @benw408701
    @benw4087015 жыл бұрын

    Wonderfully concise and clear explanation of the topic!

  • @N00B283
    @N00B2835 жыл бұрын

    This video just made me pass my exam in structured system development course at my university (y)

  • @SteveUrlz
    @SteveUrlz5 жыл бұрын

    Came with low expectations, but it was actually really good, tnx

  • @mr.logicpants2835
    @mr.logicpants283511 ай бұрын

    Mosh is AWESOME. He was made to be a good teacher. You RULE Mosh! 😛

  • @gabrielferrin
    @gabrielferrin5 жыл бұрын

    Other courses make it so much more complicated to explain what here has been plainly expressed. Congrats!

  • @niteshkumarsukumaran
    @niteshkumarsukumaran4 жыл бұрын

    Polymorphism : you gave the best example with inheritance 🔥🔥🔥 many of them will never appreciate it...

  • @cheriecheung4164
    @cheriecheung41645 жыл бұрын

    Very clear and you make the subject interesting! :)

  • @beatrizassumcao1728
    @beatrizassumcao17282 жыл бұрын

    This is the best OOP explanation i've ever seen. Thank you so much for that!

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

    This was very good, I read 5 different explanations of OOP before coming here, I had the basic idea about the terms but it's definitely clearer now, what each term actually means.

  • @skilz8098
    @skilz80984 жыл бұрын

    C++ gives you all of those benefits, plus procedural when need along with lambdas, functions pointers, function objects and templates consisting of function templates, class templates, and variadic templates... but c++ also gives you the added benefit when a set of classes that are related can reference or modify internal protected or private members by labeling them as a friend. This doesn't account for the fact that C++ is a strongly typed language, and has various storage type classifiers such as static, const, mutable, inline, etc... Modern C++ also has constexpr which is a very useful precompile feature. Suppose you have a class called Motor this could be a nested class within a Car class, however, you might want the Motor class to be an independent class because you can have a motor in a Boat, a Bike, Train, Plane, ATV, or it can even be an electrical motor to some kind of power tool. So in this situation, your base Motor class would be complete abstract, then your VehicleMotor class would derive from that. Then your derived Vehicle class objects such as a Car would have friend access to the VehicleMotor class so that it can change its internal properties such as HorsePower, NumberOfCylinders, etc. Now the Vehicle Motor class might not be able to access the Car's private members directly but could be a friend to access its private methods or its protected members... This doesn't even account for the preprocessor directives and macros. Yes, many people frown upon Macros, but in some contexts and if done carefully and correctly, they can make for good text expansion and replacement. I wouldn't rely on them for setting or changing values, or passing data types around, but they can still be useful. With the current release of C++20 in which I do not have a current compiler as of yet, we are now being introduced to Concepts, Coroutines, Modules and more! It's just that with C++ you need to know what you are doing as C++ will allow you to write code to shoot yourself in the foot as long as it compiles and links and provided you don't have any run time errors or crashes. You can still have memory leaks, dangling pointers or references, invalid pointers, and references, etc. Other things such as out of bounds indexing or accessing memory that doesn't belong to you will cause unhandled exceptions. Knowing when to cache something into a local variable within its a specific scope or stack frame is vital compared to knowing when to put something on the heap. Dynamic programming is good in many contexts but one has to be careful, that's why the standard library is so versatile with its containers and algorithms, smart pointers, etc. C++ gives you almost all of the concepts of OOP without the garbage collection of C# and Java with very minimal overhead and more. It is also considered a lower layer of the high-level languages next to C and Objective C, any lower and you'd be working with ASM. It is very fast and efficient and when done correctly, the source code for the application or the program is practically invisible as modern C++ compilers are excellent at what they do and are only improving. They aren't completely perfect as they do have bugs, but they can generate object code or assembly code much better than you can! They will utilize specific operating system functionality and CPU instructions in manners that you would never think of! Their error messaging systems are becoming much better along with their linker and debugger tools. I've messed around with C# a little, JavaScript a little and Python but when it comes to the type of programming that I'm into doing such as 3D Graphics Rendering Engines, Hardware Emulators, Sound Processing, Compiler Design, etc. this is where languages such as C, Objective C, and C++ excel above your high-end languages. If you're looking to do something quick and fast such as an online interactive program for quick access and basic functionality then yes, by all means, Java, JavaScript, C#, Python and others are perfect for the job. However, when you are writing the backend, frameworks, libraries, server code, etc. that's where these languages are usually preferred. This is why C++ is considered a multi-paradigm language! It can still work like C, it has the ability to inline assembly blocks as their own scope within a function for optimizing loops, etc. the capabilities such as C# and Java without the overkill of the garbage collection, and it isn't restricted to have everything as a class or an object or a smart pointer behind the scenes such as seen in Python, C#, or Java. However, it is a strongly typed language which makes it a great tool to master! Happy Coding!

  • @muhammadshoaibmushtaq5693

    @muhammadshoaibmushtaq5693

    2 жыл бұрын

    Bro, Wtf? You tryna scare me?

  • @skilz8098

    @skilz8098

    2 жыл бұрын

    @@muhammadshoaibmushtaq5693 No, not at all, just pointing out some of the benefits of the language. Don't get me wrong, there are also cons, but the pros outweigh the cons by a huge advantage!

  • @muhammadshoaibmushtaq5693

    @muhammadshoaibmushtaq5693

    2 жыл бұрын

    @@skilz8098 lol, I was just kidding. Thanks for sharing.

  • @Azul719

    @Azul719

    2 жыл бұрын

    You just wrote a book dude haha

  • @skilz8098

    @skilz8098

    2 жыл бұрын

    @@Azul719 It's barely a chapter. Only a few paragraphs.

  • @FredoCorleone
    @FredoCorleone6 жыл бұрын

    Perfect for a coffee break ;)

  • @ThingEngineer

    @ThingEngineer

    5 жыл бұрын

    HA agreed, that's exactly what I was doing while watching this. Great video for new comers or to recap OOP basics! THX

  • @manudelmarche

    @manudelmarche

    5 жыл бұрын

    A coffee break that's less than 30 minutes ain't a real coffee break.

  • @daanielacosta2395

    @daanielacosta2395

    5 жыл бұрын

    Indeed

  • @denisblack9897

    @denisblack9897

    5 жыл бұрын

    you should relax and breath fresh air on coffee break, for fucks sake man

  • @zeevlogs4250

    @zeevlogs4250

    4 жыл бұрын

    Yeah!! Similar thing happened with me

  • @1onuryilmaz
    @1onuryilmaz2 жыл бұрын

    Perfect explanatory video even for beginners. Thank you for this high quality piece!

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

    I appreciate you clarifying the idea, Mosh.

  • @matthewnaylor8792
    @matthewnaylor87923 жыл бұрын

    Mosh is just handing me a free education better than my college

  • @SimpleLangSolution
    @SimpleLangSolution5 жыл бұрын

    That was so beautiful. I love you.

  • @ihspan6892
    @ihspan68924 жыл бұрын

    Very well done. It actually makes a lot of sense the way you presented it.

  • @davidmuchirahondo8104
    @davidmuchirahondo81044 жыл бұрын

    Thank you Mosh. Much love from Zimbabwe.

  • @ilhamakhyar4849
    @ilhamakhyar48494 жыл бұрын

    i liked this video so much, it's really informative and perfect explaining

  • @roarznz

    @roarznz

    4 жыл бұрын

    Yeah, Mosh is great at explaining things

  • 5 жыл бұрын

    "We can change or modify one of the methods and it will not impact the rest of the code" - famous last words ;) Class extending, sharing "this" all around the place, mutating the state - that's all the consequences of OOP and it WILL impact the whole program. Granted - it's all about the patterns. But we all know how you can end up with "Spaghetti" code even with OOP. Not to mention presented "Procedural" programming claims should be also contrasted with Functional Programming since Procedural would focus highly on imperatives rather than abstraction functions. Beginners could easily confuse Procedural with Functional at this point. With that being said - thanks for gr8 video :)

  • @nptt3589
    @nptt35892 жыл бұрын

    Absolutetely incredible explanation. I thought I had a pretty good understanding of OOP until I watched your video. Now I really understand it. Thank you very much friend!

  • @ambicabanchode2581
    @ambicabanchode25812 жыл бұрын

    Never really understood these concepts until now. Thanks Mosh ! :)

  • @Rachman01
    @Rachman014 жыл бұрын

    I felt personally attacked in that intro, I have a variety of fettucine, cavipati, angelhair, bowtie and penne code thank you very much.. :D

  • @hixamjocular6591
    @hixamjocular65915 жыл бұрын

    very accurate video for understanding OOP Thanks a lot sir Mosh

  • @jayhu6075
    @jayhu60754 жыл бұрын

    This is the explanation that i been waiting all the time. Hopely more continuation tutors about methods and properties, attribuut.

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

    5 years and still a very good explanation. Bravo!

  • @kokalti
    @kokalti4 жыл бұрын

    Great video I wish I watched this before my interview. You forget these things

  • @ChrisFouadHabibifromMars

    @ChrisFouadHabibifromMars

    4 жыл бұрын

    Yeah man same, like i understand it in my head but I get nervous

  • @kak8895

    @kak8895

    4 жыл бұрын

    @@ChrisFouadHabibifromMars This may be old but I'll appreciate your reply to a question if you don't mind. Do they ask questions concerning these in interviews?

  • @Noxxys
    @Noxxys5 жыл бұрын

    Best programming teacher I've found so far! I have a lot of his courses on Udemy.

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    5 жыл бұрын

    Let me guess, you are a lil fucker from India that just likes to sound confident.

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    5 жыл бұрын

    @Major Key like most Indians you don't make sense but you'd like to think your conference in what you're saying is all that matters

  • @devonmarantz3324
    @devonmarantz33245 жыл бұрын

    Such an informative and concise video! Thanks Mr. Mosh. Cool jacket btw.

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

    You just helped to understand oop after two years of university in just 7min!!!! I will blog about this in my future blog app for suree

  • @Gamabunta24345
    @Gamabunta243453 жыл бұрын

    Encapsulation 2:00 Abstraction 3:30 Inheritance 4:45 Polymorphism 5:28

  • @jaja1279
    @jaja12795 жыл бұрын

    Maybe if I watch this twenty times I'll understand something. Maybe I won't. PS: The video is great, it's just me :D

  • @bobbyrichardson9593

    @bobbyrichardson9593

    4 жыл бұрын

    jarmila Vlčková same.

  • @flzssolutionsgmbh-powerkno183

    @flzssolutionsgmbh-powerkno183

    4 жыл бұрын

    OOP is not understandable that quickly. For that you need to dive in a little bit more into the programming world. :))) Java is not the easiest programming language, but it can help you to understand the object oriented programming completely (OOP). In case you are interested, I am preparing the courses for the java beginners.

  • @yournabi

    @yournabi

    4 жыл бұрын

    @@flzssolutionsgmbh-powerkno183 Please let us know when your JAVA for beginner videos are available.

  • @flzssolutionsgmbh-powerkno183

    @flzssolutionsgmbh-powerkno183

    4 жыл бұрын

    @@yournabi Sure, I have already 13 videos on java for the beginners and it will be updated regularly. Feel free if you have questions

  • @jamescalibah807

    @jamescalibah807

    4 жыл бұрын

    myself too... the video is great, my brain is dead

  • @MarcMcRae
    @MarcMcRae4 жыл бұрын

    This helped..a LOT! Clear. no muss, no fuss.

  • @drauryn7516
    @drauryn75163 жыл бұрын

    This quick summary provides good foundation combined with calm soothing voice. TOP

  • @carloscontreras4655
    @carloscontreras46556 жыл бұрын

    Hi Mosh! Are you going to update your C# Intermediate Course then? I ask because in it you teach that there are only THREE pillars of OOP, and I really think that could be confusing for new developers. Besides that, I hope you keep sharing great material as usually with us! Regards.

  • @dimitarmihov7757
    @dimitarmihov77575 жыл бұрын

    As a person who has bought the complete Mosh courses i must say that the paid content is EVEN MUCH better and i highly recommend anyone to purchase his courses. This is not a sponsored post, i have not received a damn $ from Mosh but i truly wish i had found his courses when i was learning .NET development at first!

  • @guitarockdude

    @guitarockdude

    5 жыл бұрын

    Yeah, I've bought a few Mosh courses. Can definitely vouch.

  • @Scarabola

    @Scarabola

    5 жыл бұрын

    That's exactly what a sponsored post WOULD say.

  • @santripta

    @santripta

    5 жыл бұрын

    @@Scarabola Actually if a sponsored post said that, that'd be illegal.

  • @HOWYOUDOIN884

    @HOWYOUDOIN884

    5 жыл бұрын

    Let me guess, you are just another fucker from India who is so confident but really doesn't understand any of this shit but are more than happy to lie on your resume and act like a confident fucker.

  • @playdatewiththetans3379

    @playdatewiththetans3379

    5 жыл бұрын

    Hai

  • @matt96533
    @matt965333 жыл бұрын

    2.23 - "they are decoupled". This really helped my understanding. Thanks

  • @faisalahmed9434
    @faisalahmed94345 жыл бұрын

    Simply undebatable! Great content.