MicroNugget: What is OOP? (Object-Oriented Programming)?

preview_player
Показать описание

In this video, Garth Schulte covers Object-Oriented Programming (OOP), which is a common design philosophy used to build various applications. This technique offers numerous advantages, one of which is code separation — the ability to create modular components and promote code reuse, drastically increasing the flexibility of the code.

Object-Oriented Programming (OOP) is a design philosophy commonly used to build apps. One of the biggest advantages it offers is code separation. Rather than reinventing the wheel with each separate function, code separation offers the ability to write a line of code once, then reuse it as necessary for different functions. This drastically increases the speed and efficiency with which apps can be built. Garth also covers some of the more advanced features of OOP, including class hierarchies and data models.

The foundation of OOP is called a “class” and contains three major features: properties, methods, and events. The video will walk you through the basic functionality of each, as well as how they interact with each other.

Start learning with CBT Nuggets:

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

I don't see how this channel doesn't have more views.

I've started learning the MVC framework and I've been trying to grasp a strong foundation of OOP for a few days. So far this, this video has been the best at explaining what it is.

Easy to follow, understand, and the visual aid really helped a ton. Thanks for the video!

FederationcoreY
Автор

Dude I'm totally newbie and your video is the first thing that I actually understood a bit. :)
Thanks man.Subscribed

Zohanbc
Автор

You are welcome Matt! If you have any MicroNugget requests, make sure to leave them in the link found in the description.

cbtnuggets
Автор

This explains it extremely well thank you!

Dragonline
Автор

Advantage of OOP: code re-use
Classes: Blueprint containing properties, methods, events
Objects: real live copies made using classes (house made following the blueprint)
Class hierarchy: classes that contain things that are shared by other classes lower on the chain (e.g. accountants and consultants both contain properties of age, title...etc. so these are grouped as employee class)

burninatedwolfman
Автор

thank you brother...very efficient and powerful presentation, complete in all sense for a beginner...

ujjwalchetan
Автор

child classes (classes lower on the chain) inherit everything that a parent class has, and also has some unique props, methods or events that make them unique.

burninatedwolfman
Автор

@13sh an object, for example in Excel, would be a worksheet, or a userform.
Each object has properties which can be manipulated or modified like, maybe, the background color, the size of its cells in the case of the worksheet, etc.

TonyDiaz.
Автор

Great stuff, this really helped solidify things for me without having to sit through a 20+ minute video of a guy in front of a white board (which isn't bad, but I ain't got time for that).

mentaloasis
Автор

abstract class: classes that cannot be instantiated (made into objects) on their own (e.g. an employee object cannot exist because an employee cannot just be an employee without some more classification e.g. does it belong to the class accountant or consultant?

This is just a summary note for my personal viewing, excuse me if any of them are incorrect - corrections are welcome.

burninatedwolfman
Автор

Awesome video - very helpful! Thanks!

othursdayz
Автор

Also, the Microsoft windows icons you are using for the demonstration are depressing af. Please use a bit more colorful and a bit more endurable pics for demonstration. Your narration, though, was great.

aashitsharma
Автор

@13sh that is one of the most shallow comments I've ever heard...
Icons with bright colors?
Damn, some 'muricans can be so superficial...

TonyDiaz.
Автор

Excellent way of explaining the concepts! 'Liked' and thanks man! :D

mofojackson
Автор

I still dont get it...ughh!! Everyone here seems to understand it, but me.

You can create a class in a class, an object in an object, a class in a method, an object in a method, a method in all of the above!! Where do you draw the line on this absurdity!
 I know a bit o' C, so i can relate a class to a .C file, which can be used by calling the file in another C file.
I know method is simply a function.
BUT WHAT THE HELL IS AN OBJECT?!
 I feel like breaking stuff and shouting with anger.
I have read the book, seen a few videos on this topic, read a lot of answers on the internet ; I have basic knowledge of C, and I still dont get it it!
Maybe programming is just not for me...:/

aashitsharma