Virtual Functions & Abstract Classes in C++ | C++ Programming Tutorials

  Рет қаралды 171,465

Simple Snippets

Simple Snippets

6 жыл бұрын

Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
--------------------------------------------------------------------------------------------- In this video tutorial we will study and understand the concept of Virtual Functions and Abstract Classes and we will also see 2 practical examples of Virtual Functions.
Virtual Function in C++ - A virtual function is a member function which is declared within base class and is re-defined (Overridden) by derived class.
When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class’s version of the function.
1) Virtual functions ensure that the correct function is called for an 2) object, regardless of the type of reference (or pointer) used for function call.
3) They are mainly used to achieve Runtime polymorphism
4) Functions are declared with a virtual keyword in base class.
5) The resolving of function call is done at Run-time.
Pure Virtual Functions & Abstract Class in C++ - Sometimes implementation of all function cannot be provided in a base class because we don’t know the implementation. Such a class is called abstract class.
A pure virtual function (or abstract function) in C++ is a virtual function for which we don’t have implementation, we only declare it. A pure virtual function is declared by assigning 0 in declaration.
Some important facts -
1) A class is abstract if it has at least one pure virtual function.
2) We can have pointers and references of abstract class type.
3) If we do not override the pure virtual function in derived class, then derived class also becomes abstract class.
4) Abstract classes cannot be instantiated.
Download Dev C++ IDE : sourceforge.net/projects/orwe...
Download C++ Android App : play.google.com/store/apps/de...
Simple Snippets Official Website -
simplesnippets.tech/
Simple Snippets on Facebook-
/ simplesnippets
Simple Snippets on Instagram-
/ simplesnipp. .
Simple Snippets Google Plus Page-
plus.google.com/+SimpleSnippets
Simple Snippets email ID-
simplesnippetsinfo@gmail.com
For Classroom Coaching in Mumbai for Programming & other IT/CS Subjects Checkout UpSkill Infotech - upskill.tech/
UpSkill is an Ed-Tech Company / Coaching Centre for Information Technology / Computer Science oriented courses and offer coacing for various Degree courses like BSc.IT, BSc.CS, BCA, MSc.IT, MSc.CS, MCA etc.
Contact via email /call / FB /Whatsapp for more info
email - upskillinfotech@gmail.com
We also Provide Certification courses like -
Android Development
Web Development
Java Developer Course
.NET Developer Course
Check us out on Social media platforms like Facebook, Instagram, Google etc
Facebook page - / upskillinfotech
Insta page - / upskill_infotech
Google Maps - goo.gl/maps/vjNtZazLzW82

Пікірлер: 194
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
@ritikpatil4077
@ritikpatil4077 3 жыл бұрын
Fun Fact :- You don't dare to increase playback speed.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
😂😂😂😂😂😂😂 true that 😂😂😂😂😂
@seharhassan7090
@seharhassan7090 2 жыл бұрын
well, i do XD
@user-tj5rm2zb9y
@user-tj5rm2zb9y 2 жыл бұрын
Its already increased to 1.5x so i wont
@truptibenpatel3245
@truptibenpatel3245 2 жыл бұрын
Yea right
@markknight5178
@markknight5178 2 жыл бұрын
I slowed it down to .50 and it was fine 😀
@zauneebyama2494
@zauneebyama2494 3 жыл бұрын
Man you are so good at teaching 😊 The way you drop links of your related lectures is so helpful. Thanks a lot for saving my semester ❤️
@anuchechi9917
@anuchechi9917 4 жыл бұрын
The way you have explained all the videos on C++ concepts is just awesome. Thank you so much.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome ya 😊 this was a really motivating comment ✌️ please do share the video with your friends ✌️ that's the biggest help & support 😁
@rockstarundercover
@rockstarundercover 6 жыл бұрын
You videos saved my life! I have a test for which I fell asleep and didn’t prepare at all. Thank you! You are doing great :))
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you so much for such a wonderful response. Please do help me too. Share this video and channel with your friends and contacts and even they might go help from this ✌️😇
@mohansivadhas
@mohansivadhas 4 жыл бұрын
I am a intern in a product company and this video really helped me. Osm explenation!
@bharanikumarpatibandla1226
@bharanikumarpatibandla1226 4 жыл бұрын
best video lectures ever seen by mean. It is the only channel from which i can understand c++ !! Thank you very much.good work bro!!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome buddy. Glad to hear this from you. please do share this videos and our channel with your friends too bro, thats the biggest help and support 😇
@shivanibist256
@shivanibist256 3 жыл бұрын
Damn good 💯. You sound so confident from the start I was like yaa gotchaa. Gotchaa. Finally understood. There was no space for doubt. Thanks man.subscribed.✨
@manansanson7959
@manansanson7959 3 жыл бұрын
you got quality in you videos, beautifully explained!! to the point!
@vaidehimahyavanshi558
@vaidehimahyavanshi558 2 жыл бұрын
I don't understand how can someone dislike his videos I mean he is so good at explaining and he's better than any of the college teachers! Anyways thankyouuuu so much....
@SimpleSnippets
@SimpleSnippets 9 ай бұрын
Thank you 😊 means a lot to me 🙌
@aldoalayz
@aldoalayz 3 жыл бұрын
Perfect explanation no bs straight to the point and also shows how it is useful, thanks!
@yuvrajsinghbajwa8039
@yuvrajsinghbajwa8039 3 жыл бұрын
what are different type of virtual functions
@scriptkiddie6151
@scriptkiddie6151 3 жыл бұрын
@@yuvrajsinghbajwa8039 pure virtual function and simply virtual functions
@AdityaSingh-jh5qg
@AdityaSingh-jh5qg 2 жыл бұрын
Tomorrow is my exam and Today I am here for Virtual function. And my this concept is clear. Thanks @SimpleSnippets
@pawarb07
@pawarb07 5 жыл бұрын
Superb explanation !! it cleared my concept in just 15 mins.. excellent video man ..keep it up bro !!! you will go too far ..all the best
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Bhushan 😊 super happy to hear this from you. I would request you to please share the video with your friends too ✌️😊 that'll be best 😊
@AdityaSingh-ur9pr
@AdityaSingh-ur9pr 4 жыл бұрын
Your OOP lecture series is a gem
@maheshnahak9510
@maheshnahak9510 3 жыл бұрын
Excellent explanation Tanmay. Thanks a lot!!
@kulaningobeni20
@kulaningobeni20 4 жыл бұрын
Great work, You have simplified what others complicate most of the time.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
I'm glad I could make it easy. That's the biggest purpose of my channel 😊✌️
@gauravkumarverma5322
@gauravkumarverma5322 3 жыл бұрын
Bhai maza aa gaya! Kya samjhaya hai. Mere University ke teacher se to 100times bawal!!!
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Hahahaha thank you Gaurav bhaai. Bohot acha laga ye comment padhke. please share kar do ye channel aapke dosto ke sath. Bohot help hojayegi!
@maheshbabu777
@maheshbabu777 4 жыл бұрын
Greatly Explained. Thanks for sharing knowledge.
@soniyagupta3593
@soniyagupta3593 2 жыл бұрын
You are videos are life saving one day before exam ☺️ thx a lot dude
@danishpatras4986
@danishpatras4986 3 жыл бұрын
2 example is very good example to understand the concept of abstract and virtual function
@sathiadak5363
@sathiadak5363 4 жыл бұрын
I liked your way of method of teaching😊with good quality of sound...
@isaacsakyi5997
@isaacsakyi5997 Жыл бұрын
i am amazed at your teaching ability
@alfonsocastillosuarez5925
@alfonsocastillosuarez5925 3 жыл бұрын
Brilliant tutorial!
@Sabari-gd3fw
@Sabari-gd3fw Жыл бұрын
Thanks for the explanation 👍
@alessiomichelassi8390
@alessiomichelassi8390 4 жыл бұрын
Clever! thankyou very much. Great example!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much buddy, Glad to hear this from you. Please do share the videos with your friends too bro 😇
@ketangaikwad8617
@ketangaikwad8617 2 жыл бұрын
thank you so much sir!
@raunakkumar6144
@raunakkumar6144 9 ай бұрын
Just love your explanation man !
@SimpleSnippets
@SimpleSnippets 9 ай бұрын
Thank you bro 😊
@harshalgarg1149
@harshalgarg1149 3 жыл бұрын
Thanks.
@shankersalil8847
@shankersalil8847 3 жыл бұрын
very good explanation
@hoop5768
@hoop5768 4 жыл бұрын
plz tell at 13:55 why do we make one extra func...we can do it without it also naa???
@pgeditz666
@pgeditz666 2 жыл бұрын
God of c++ lecture 🙌
@rajatkhandelwal4803
@rajatkhandelwal4803 3 жыл бұрын
greattt brother!!!!
@bapudeewana7870
@bapudeewana7870 6 жыл бұрын
Last second Peace was very funny LOL
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
😅😂
@jamesnash9675
@jamesnash9675 2 жыл бұрын
you are the best.........masum
@RaviShankar-oj7rg
@RaviShankar-oj7rg 3 жыл бұрын
Thank You SO Much Sir
@sakshikakde5916
@sakshikakde5916 2 жыл бұрын
ur the best
@OmegaJazz
@OmegaJazz 6 жыл бұрын
What is the difference between Visual C++ and Dev C++? Like im using VC++ and its fun, i haven't tried Dev C++.
@wajeehasiddiqi6878
@wajeehasiddiqi6878 2 жыл бұрын
please add a tutorial on virtual destructors as well as early as possible sir I have exams this weekend...I have watched all YOUR videos tis they helped me a lot get out of all the problems I had with this language. Tanmay sir it would be a great favor
@yuyu-ce4fz
@yuyu-ce4fz 4 жыл бұрын
really great, thanks.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks buddy, glad to hear this. please do share the video with your friends too. Thats the biggest help and support 😇
@adityasarin39
@adityasarin39 4 жыл бұрын
Great video and explanations!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad you liked it!
@subhashr.p7643
@subhashr.p7643 3 жыл бұрын
Excellent Explanation. Use of Virtual function rel time example.. Awesome
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad you liked it
@yuvrajsinghbajwa8039
@yuvrajsinghbajwa8039 3 жыл бұрын
what are different type of virtual functions?
@acm_tharu793
@acm_tharu793 2 жыл бұрын
If we write program for pure virtual function then it will also for abstract class or not? As we know pure virtual function is known as abstract class..
@animeprogrammer
@animeprogrammer 4 жыл бұрын
you don't have to create Animal class pointer because you can directly pass the Derived class object to the function with reference operator function1(&catObj);
@lakshaybajaj-lr7sm
@lakshaybajaj-lr7sm Жыл бұрын
superb :)
@vuhelpforum
@vuhelpforum 4 жыл бұрын
Thanks alot
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@yuvrajsinghbajwa8039
@yuvrajsinghbajwa8039 3 жыл бұрын
what are different type of virtual functions?
@yogeshdeshpande9532
@yogeshdeshpande9532 3 жыл бұрын
. thanks❤️
@mingukkie5008
@mingukkie5008 2 жыл бұрын
I have doubt as I'm a beginner so don't mind me you made Saperate void function but if we just directly points it like we did in first program something like this: Animal *ptr; Cat obj; Ptr=&pbj; Ptr->eat() ; So it's gonna work same right????
@yellamrajuharishwarsagar5734
@yellamrajuharishwarsagar5734 5 жыл бұрын
Bro which software are u using for black board ?
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
It's called smoothdraw4. It's free and open source ✌️
@ridathemalik
@ridathemalik 7 ай бұрын
HEY IM IN 3RD SEMESETER RN AND I FOUND ALL THE LECTURES ON KZfaq VERY LONG AND NOT WORHTY BUT YOUR LECTURES ARE TO THE POINT AND SHORT AND COVER EVERYTHING PLEASE TEACH DSA TOO.
@SimpleSnippets
@SimpleSnippets 7 ай бұрын
DSA playlist is already on the channel.
@sureshbahadurshah2514
@sureshbahadurshah2514 3 жыл бұрын
How can an assingment operator (=) is used for objects without using operator overloading?
@henriquemedeiros2840
@henriquemedeiros2840 Жыл бұрын
oh my god you have no idea of how much I love you lol
@zakriabacha2477
@zakriabacha2477 6 жыл бұрын
sir , you teach in a so most excellent way
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you very much buddy. Happy to see your positive feedback. Please do share the videos with your friends too 😇
@zakriabacha2477
@zakriabacha2477 6 жыл бұрын
ok sir please make a video how to add graphics in dev c++ also thanks sir
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Okay sure I'll try to cover that as well 😇✌️
@SahilKumar-ni7su
@SahilKumar-ni7su 4 жыл бұрын
@@SimpleSnippets i year gone and you haven't
@mahesh-jg3zx
@mahesh-jg3zx 5 жыл бұрын
Sir you cannot answer for my question in the last video. Why we are using scope resolution
@st8738
@st8738 4 жыл бұрын
Great sir thanx a lot
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@HarshVerma-oz5uo
@HarshVerma-oz5uo 3 жыл бұрын
If you have to create the Object of derived class anyway then why not call the derived class function directly instead of calling passing it to the Base class pointer. Hoping you will help me to understand that by not giving bookish defination
@babbubaliga2736
@babbubaliga2736 6 жыл бұрын
Excellent video man.
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you so much for the positive comment buddy. Do share the video with your friends and contacts 😇
@monomail5964
@monomail5964 3 жыл бұрын
Hy sir, I can write the whole C++ program but when the time to access the values to call the implementation. I am gonna stuck. Please can you teach me about this?
@shruthis7302
@shruthis7302 5 жыл бұрын
can u plz upload d overloading of binary operators using friend functions
@ManindraKhandyana
@ManindraKhandyana Жыл бұрын
Sir, at 1:32, function overriding can not be achieved without virtual function!!!
@muhammadshafique9493
@muhammadshafique9493 3 жыл бұрын
much needed for that tutorials love from pakistan
@subtlesurfer
@subtlesurfer 2 жыл бұрын
🔥🔥
@BringMe_Back
@BringMe_Back 2 жыл бұрын
here to revise again :)
@samarthm4582
@samarthm4582 4 жыл бұрын
I guess i have come here late to appreciate you. Amazing work man.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Late is better than never Samarth. Thank you so much for such wonderful appreciation. Please do subscribe to our channel and definitely share it with your friends too 😇
@zakriabacha2477
@zakriabacha2477 6 жыл бұрын
please make a video how to add graphics library in dev c++
@jayaprasadb2044
@jayaprasadb2044 4 жыл бұрын
Without using the function1 we can print respective message for corresponding object
@ysosrdude
@ysosrdude 2 жыл бұрын
i have this problem where we need to call both virtual and derived function at the same time, and i can't understand how to do it
@supriyathakur2968
@supriyathakur2968 4 жыл бұрын
Very helpful video
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad it was helpful! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@venkateshprasads8361
@venkateshprasads8361 3 жыл бұрын
great bro nice 👍
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad you liked it! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@deepalipatil9899
@deepalipatil9899 4 жыл бұрын
Great video !! very well explained. Kudos
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you! ✌
@vinaykumarhegde8557
@vinaykumarhegde8557 4 жыл бұрын
Thanks for sharing amazing content..! I have few queries hope I'll get response 👇: @1:31 Can you please tell that why specifically we need virtual function when override is possible using function overriding?
@ysosrdude
@ysosrdude 2 жыл бұрын
because for function overloading, you either need different no. of parameters or different data type of parameters, so technically you will need to write use char for cat food and string for dog food, as an example and also you'll have to write the two functions seperately, which is not really feasible and it also wastes more memory bcuz it is two seperate functions. in virtual function he wrote only one function func1 and printed both dog and cat food with it, basically virtual functions can be used to sort of overload when your two functions are having same parameters or same data types
@AHMEDRAZA-xv3gl
@AHMEDRAZA-xv3gl 4 жыл бұрын
Simple Snippets I wanna ask a question that can we make a function virtual in derived class as well or only in base class we can do it?
@vasuyadav2931
@vasuyadav2931 2 жыл бұрын
If the derived class has a child class inheriting from it then I think you can use virtual functions in that derived class. But I'm no expert in inheritance so please take this with a grain of salt.
@techmatein
@techmatein 4 жыл бұрын
Tanmay you rocks!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you Kashif. Glad to hear this from you. Please share this video with your friends too 😇
@techmatein
@techmatein 4 жыл бұрын
@@SimpleSnippets yep! Sure!
@dihedral6374
@dihedral6374 4 жыл бұрын
6:12 Why you are not using acess specifiers in Myderived ?
@anubhav0355
@anubhav0355 4 жыл бұрын
he did.... public MyBase
@fleek4338
@fleek4338 3 жыл бұрын
Why to use Virtual function, when I can even run my code without using the virtual function??
@cheezeypz1887
@cheezeypz1887 3 жыл бұрын
You're amazing, thank you so much!
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
You're very welcome! It would mean a lot if you could please share our channel and videos with your friends too ✌
@nirajjain04
@nirajjain04 5 жыл бұрын
Explanation!👍🤝
@rashminirmale3040
@rashminirmale3040 4 жыл бұрын
The way of explaining is vary good ,neatly explained but need to be little slow the current video explanation is vary fast
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thanks Rashmi & yes I will remember maintaining a slower speed in future.
@MOROCCANFREEMIND
@MOROCCANFREEMIND 3 жыл бұрын
Just slow down the speed of the video from options
@saikirandeekonda5953
@saikirandeekonda5953 3 жыл бұрын
Encapsulation ke bareme batayiye sir
@animespeedart8847
@animespeedart8847 2 жыл бұрын
There's not any tutorial on Composition :(
@haneefshaik4606
@haneefshaik4606 3 жыл бұрын
Nice explination man
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad you think so!
@haneefshaik4606
@haneefshaik4606 3 жыл бұрын
@@SimpleSnippets not my thinking bro its the fact
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you so much 😊 means a lot bro ✌️
@themimic4261
@themimic4261 3 жыл бұрын
bro can u explain advanced c++ as well?
@adisingh9341
@adisingh9341 3 жыл бұрын
There is no card or link in top right corner coming
@karthikkrishnan8556
@karthikkrishnan8556 3 жыл бұрын
But without using virtual keyword alone would print out the value of generic class for me so could you explain what's the use of that standalone function?
@yuvrajsinghbajwa8039
@yuvrajsinghbajwa8039 3 жыл бұрын
what are different type of virtual functions
@omkaryametkar
@omkaryametkar 2 ай бұрын
🎉
@kuldeepmeena3685
@kuldeepmeena3685 5 жыл бұрын
hii bro , i am kuldeep , IN THIS video tut. i don't understand program that you made ..
@shomiiii96
@shomiiii96 3 жыл бұрын
The accent and speech speed is a pain in the ass and my ears bleed, but damn it's a very high quality explanation with that second example of cats and dogs. Well done 👏
@niranjanamurthy4168
@niranjanamurthy4168 6 жыл бұрын
good
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you :-) Please share this with your friends and contacts too ✌ That will be the biggest help and support for our channel 😇
@shruthis7302
@shruthis7302 5 жыл бұрын
can u plz upload videos on all concepts of classes and objects @simplesnippets
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Here is the full playlist of C++ Programming, you might find your topics here - kzfaq.info/get/bejne/d7F-espyvbrFop8.html
@crazyriwasharena3154
@crazyriwasharena3154 6 жыл бұрын
gud bro
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
+Technical Riwash thank you buddy. And sure will try to make videos on Python but currently already have a lot of tutorial requests so will first try to finish those ✌️
@huyvole9724
@huyvole9724 6 жыл бұрын
Hi teacher, Can I understand "Virual Function same Override" ?
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Hello, I didnt understand your question properly but yeah virtual functions also enable us to perform function overriding.
@huyvole9724
@huyvole9724 6 жыл бұрын
Thank you teacher ^^ my question: Virtual function is override ?
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
+Huy võ lê yes virtual functions help us in function overriding and dynamic polymorphism. ✌️
@AbhishekVerma-df2vq
@AbhishekVerma-df2vq 6 жыл бұрын
Which programming language should I start right now. Please tell with consideration to Future. I am in class XII right now. After board exams, I want to learn programming.
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
+ABHISHEK VERMA complete c++ then Java. ✌️
@AbhishekVerma-df2vq
@AbhishekVerma-df2vq 6 жыл бұрын
Simple Snippets thanks *tanmay* bhai
@AmanSingh-fh2kd
@AmanSingh-fh2kd 6 жыл бұрын
please bro put all the video tutorial in sequence,,otherwise great job!!
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Hey Aman, all the tutorials are pretty much in proper sequence only in the C++ programming playlist. Checkout this playlist in the playlists section of the channel ✌️😊
@rishitmathur3202
@rishitmathur3202 2 жыл бұрын
BTech electronics and communication technology k sem 3 mein oop ka exam hai kal. I will pass it because of this video
@r.ktechnicalpresent3513
@r.ktechnicalpresent3513 3 жыл бұрын
sir you slide pani halnuna note ko lagi
@bredmond812
@bredmond812 4 жыл бұрын
Why did you make baseptr as a pointer? EDIT: i notice later that you say it allows you to make it point to any object of MyBase class. You then utilize this later when you make function1 so that it can call cat or dog. I guess that is why...
@abhiiiydv
@abhiiiydv Жыл бұрын
9:02
@ranjanagaikwad6291
@ranjanagaikwad6291 5 жыл бұрын
Sir thordsa slow smjhaeye 😐
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Sorry for the fast speed ✌️
@animenerd_
@animenerd_ 4 жыл бұрын
most people watch at 1.5x speed xD
@kunalpingle203
@kunalpingle203 5 жыл бұрын
how to print "eat generic food " from base class without removing virtual keyword.
@Asdf-wm4ow
@Asdf-wm4ow 4 жыл бұрын
Make an object of type animal then have the pointer point to it.
@neerajmahapatra5239
@neerajmahapatra5239 5 жыл бұрын
I will make shape area example by own ....😎😎😎 How you make it so simple and easy to understand yaar correct speed correct language. Hats off to you👌👌👌👌
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thanks Neeraj 😊 super happy to keep hearing your amazing comments ✌️😊
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 44 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 36 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 37 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 76 МЛН
Friend Functions in C++ Programming | Object Oriented Programming in C++
10:03
Abstract Class and Pure Virtual function in  C++ -51
11:03
Codearchery
Рет қаралды 97 М.
Not In 138 Years Have We Seen Chess Domination Like This
11:21
Epic Chess
Рет қаралды 31 М.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level Learning
Рет қаралды 658 М.
Function Templates in C++ with Program Example | C++ Programmming
11:49
Object Oriented Programming (OOP) in C++ Course
1:30:26
freeCodeCamp.org
Рет қаралды 2,5 МЛН
C# polymorphism 🎭
5:11
Bro Code
Рет қаралды 76 М.
Operator Overloading in C++ Programming | C++ Programming for Beginners
13:32
Virtual Functions in C++
6:45
The Cherno
Рет қаралды 500 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 44 МЛН