C++ Programming Tutorial 97 - Inheritance And Polymorphism

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


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Hands up if you watch this right b4 the final..

splendidzr
Автор

"The teachers are going to start teaching and the students are going to start studying." Perhaps in an ideal world...

PunmasterSTP
Автор

I appreciate the simplicity of this, thank you!

tessal
Автор

Great video - where can one practice problems for C++ inheritance and polymorphism concepts ?

harshaljadhav
Автор

rather saying child and parent, more acurate meaning is using #include .... because base class You include in to new class, and You have access to all components as it is made by You. Each new obiect are copying code to him self, difference is only to us, that we have nicer grouped functions.

maximo
Автор

You still use Rad Studio? I’m planning on developing an application so your insight would be helpful.

southhippysa
Автор

About the isomorphism, I have long time to understand what that means, and I notice that polymorphic is related to pointers, compiler somehow knows that trick and creating pointer USER and assigning to it TEACHER compiler knows that he need exclude from object Teacher address of User. That address is unique because it is in side of object of Teacher. That's why we can have many pointers of User which are related to differed child classes like Teacher or Student.
Otherwise there was no sense for me creating return type of pointer of user and assigning to it teacher, because teacher is different returning type. But because of inheritance, there compiler knows which type of object assign to pointer.

maximo
Автор

Love your C++ i am following full series of C++ programming

zamadahmad
Автор

I just tested it.
Do you have to remake custom constructors? (for example copy user(std::string first_name, std::string last_name) to teacher(std::string first_name, std::string last_name) or is there another trick to it?

dms