Abstraction explained with real-life examples and code! - C++ OOP Course

preview_player
Показать описание
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️

Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
It is a powerful, secure text editor designed specifically for programmers.

Abstraction is one of the most important Object-Oriented Programming principles that confuses many beginners. The idea of abstraction is to show only the most important and essential information while hiding the unimportant and complex details.

There are many examples of abstraction in real life:
- When you drive a car, you don't need to know how the internal components of the car work in order to be able to drive it. All of that complexity is hidden behind simple procedures that make the process of driving a car easier.

The same rule applies in programming. When we make a class that has a lot of functionalities, we can hide the inner details and complex logic related to these functionalities behind a simple interface that will make it easy for other developers to use our class, without having to know how those functionalities are implemented.

In this video, I'm explaining what is abstraction, how to use it, and its purpose in real-life examples and using C++ code as well.

However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Contents:
00:00 - Intro
01:05 - What is Abstraction? (with real-life example)
06:36 - Let's build a C++ program to show how Abstraction works
15:11 - The true importance of Abstraction

Tag me on you Instagram stories:
Рекомендации по теме
Комментарии
Автор

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

CodeBeauty
Автор

As a professional, this is a really good explanation and documentation. I know that how hard it is to teach how to code especially in C++, and you doing it very well!. Keep it up!😁

martonkos
Автор

My takeaways:-
1. Abstract classes are an abstraction around base classes which can be used to enforce certain functionality in all base classes.
2. Abstract classes can be instantiated using pointers only and not by creating objects of the abstract class.
3. Abstract class pointers can point to memory addresses of instances of any of its base class
4. Pure virtual functions can be used to enforce certain functionality in all base classes of an abstract class.
5. Pure virtual functions will not have an implementation in the abstract class definitions, but will use a pure specifier (= 0)
6. Virtual functions can have an implementation in the abstract class (think of it like the default functionality if none of the base classes have an implementation of that function)

matrixtoogood
Автор

She really made me understand the concepts very easily, much better than my college textbooks and teachers.

Duknh.programmer
Автор

The two unique qualities that attracted me to subscribing to this channel are 1. Real world examples (Saldina you are a unique instructor). 2. GUI programming in c++ (this channel has so far published a few - about 4 videos on c++ gui programming - I found them helpful.

mohamedabdibarre
Автор

Your teaching skills are actually better than 90% of Udemy teachers.
Accept my greetings from Palestine.. hopefully you do some tutorials about preprocessor (pragma once, define, ...etc)

ZeroCool
Автор

As many have stated, you really helped me understand difficult concepts that my past instructors have failed to explain correctly. Thank you so much for taking the time to do these videos, they prevented me from losing my sanity when I was hanging on by a thread. I am going through all of your OOP videos and coding along with you and I am learning so much!

mackenziejackson
Автор

I just stumbled upon your channel and wow!! I am so amazed at how you teach the topics at hand. It clicked in way it hasn't before. I love how you simplify the concepts by using relatively easy to understand scenarios like the coffee example.

subarux
Автор

you the one who made me love coding and success in my college..Thank you..please dont stop

monstergamingiraq
Автор

Thank you for making these videos. You teach better than my professors and I was stuck on so many concepts before I came across your channel :) was becoming discouraged. Please continue making more c++ videos and ill keep watching :)

marisaloac
Автор

All the 7 videos on OOP are just amazing - Thanks Saldina! You are great!

AshwinKumar-kcly
Автор

Saldina ! you have literally helped me learn c++ in a matter of days! keep it up I'm sure many others are benefitting from this as much as i am!

ashrafmugalli
Автор

This is, hands down, the best tutorial that I've seen that lucidly describes the abstraction standard C++ was invented for. Only thing that in my opinion that would improve this explanation is to briefly mention how the definition of the Android/IPhone classes can be in a completely separate library that the client code only needs to link to and get a pointer to the interface of the object from an exported API without knowing anything about the library code. This would make the process of abstraction completely clear to a newcomer who still may struggle with this example since the implementation of the class methods are inside the same page (translation unit) as the client code that invokes the methods. Seriously, amazing job, and thank you!

EvilSapphireR
Автор

come from virtual fonction and abstract function. So grateful for what you're doing. I would say this is the most outstanding explanation video for abstract functions I've ever seen. this is a good example of using coding as a weapon to help more people. That's my purpose too. So Thank you so much <3<3

jojo_v
Автор

Great tutorials, I have watched your Pointers playlist and now am working through the OOP playlist, I am taking a college course on video game development and watch your videos to reinforce what I have learned in my classes. Thanks a lot!

R_FriUI
Автор

After failing 3 technical interviews for embedded sw because I failed to explain the definition of abstraction, I FINALLY can explain what is abstraction and the other 3 pillars. THANK YOU!

KyleGW
Автор

Wow! Amazing instructor! I'm retired with multiple degrees in engineering and statistics but Saldina is one of the best I have seen. It is a great and rare skill to be able to break down complex topics for the learner. Excellent example and presented extremely well.

wesanderson
Автор

Amazing - the power of abstraction and your intuitive and clear explanation of it. Thanks!

jasnarmstrng
Автор

i spent like half of the day to understand abstraction and to find a real example of abstraction
and now here i am
fully aware of it with the help of such an awesome teacher

nitin
Автор

Very good and practical explanation. I had OOP courses during university but this part was always a bit "abstract" for me. I do not do advanced programming on my job - just scripting from time to time. But hey, this now makes sense! Thanks!

Ghisisan_