C++ Tutorial: Inheritance, Polymorphism, Virtual Functions, Abstract Base Class (Updated!)

preview_player
Показать описание
In this video, I write a short program that utilizes the object-oriented programming principles of polymorphism and inheritance.

Included are examples of inheritance, polymorphism, virtual functions, abstract base classes, and a UML diagram for the example program.

// Learn More //
...by watching my Classes playlist:

...by watching my 80+ videos C++ playlist:

// Consider supporting this channel in multiple ways //
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Dogecoin: DRK2HDp3ZkkbFpvGZnVgMVosnBhPv8r3uP
Рекомендации по теме
Комментарии
Автор

Pretty much everything you need to know about C++ classes. Thanks Prof!

ladoctoradebug
Автор

This is how computer science SHOULD be taught! My school just used powerpoint and we never ever coded in class so I would never know how to actually implement these concepts. Thank you for your help!

bern
Автор

The best OOP application tutorial in C++ I ever watched!!!!

liboyan
Автор

Thank you sir. You're one of the best when learning C++ 🙏

mihirpatel
Автор

This about 30 minutes video was way crystal clear than my 2-hour CS lecture. Thank you for your quality video.

jhc
Автор

The best OOP application tutorial in C++ I ever watched.
Simple and easy to understand explanation.

johnpaulrosario
Автор

The best video on the internet I have ever seen about inheritance, thank you so much!!!

jesusgarciagutierrez
Автор

Amazing video, thanks for all the help. Needs more teachers like this

nolans
Автор

this was better than 4 hours of lecture, thak you very much.

nikopapiashvili
Автор

Thank you! I'm finally starting to understand what is polymorphism used for.

alexandruteodor
Автор

Wow! Very well and clear explanation and demonstration! Great Job Hank! :)

shankarghimire
Автор

Thank you so much for making this! I've been feeling some disconnect between the content of my CS class and my understanding and seeing this helped me understand what we've been talking about so much more.

Spectrej
Автор

Thank you professor hank this helped me a lot I struggled all through cs 115 and finally I understand how inheritance and polymorphism works. and this got you a new sub!!!

SHAquaEngineering
Автор

was lovely to listen to this while doing my stressful assignment

zengceng
Автор

Excellent tutorial. You nailed it. Thank you very much, this was a well designed and well presented video, only someone insane could give it a thumbs down. I can't wait for more tutorials from you. Keep up the good work.

truthspeaks
Автор

Very nice and simple way to explain an actually very complicated topic! That was exactly what I needed for my current project! Thank you!

gepic
Автор

This is an awesome video explaining difficult to understand C++ OOP concept in a simple and straightforward way. Very well thought of samples from inheritance to virtual function and to polymorphism. Sincere Thank You!

chakt
Автор

This is so well paced and explained. Thank you very much for your effort professor!

kidbuu
Автор

thanks very much. it is really worth a thumbs up professor Stallica, very very excellent video with great example to demonstrate the concepts, although it would have been better to inherit two abstract classes from the Shape class, being named TwoDShape and ThreeDShape, then assigning a virtual function getVolume to the ThreeDShape class and then inheriting the Circle and Rectangle classes from TwoDShape and Solid class from ThreeDShape; so that the getVolume method will do whatever the getArea method did for Solid in your code (returning length times width times depth). the getArea method you defined, is later used in Solid class but it doesn't return the area, it returns the volume, and that is not wrong in a way to generate errors, but is kind of weird for a getArea method to return the volume and not the area itself.

mahdishirazi
Автор

Thank you for the video. I enjoy your explanation and method of explaining concepts.

donovanhodges
welcome to shbcf.ru