Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
Sorry for saying this sir but you didn't tell the one thing...that is We inheriting the class c1 two times to class c4 through class c2 and class c3. The compiler will get confuse if you call the member function c1fun of class c1 to select path to access that c1fun , as there are two paths to access that c1fun one is through the class c2 and another one is class c3. Thus we are using 1."virtual" keyword while inheriting the class c1 to c2 and c3. OR 2. we can use class name and scope operator during function call. Where these two makes a single path to access class c1.
Me classes Chala bagunayi sir e lockdown type lo degree valaki Chala use avuthundhi sir tq a lot ...simply superb......slow GA superb ga ardham ayatatu chapthunaru😇😇
Your explanation is very good sir that I could understand very easily and I subscribed you sir thank you sir for such beautiful explanation that you given for virtual
Hi sir, it is nice explanation. But I want to know some what in depth like only one copy created then in which way it will go to class D. And there is virtual key word with class so vptr and vtable will create or not if yes then how it will work can you explain about it. On board.
if i'm not wrong the virtual base class is used for to avoid duplication of data and ambiguity problem when we are deal with multipath inheritance and virtual function is useful feature in cpp to achieve run time polymorphism...i.e in function overriding problem...
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
A tip : you can watch movies on Flixzone. I've been using it for watching lots of of movies recently.
@Canaan Eric Yup, I have been using Flixzone} for months myself :)
Sorry for saying this sir but you didn't tell the one thing...that is
We inheriting the class c1 two times to class c4 through class c2 and class c3. The compiler will get confuse if you call the member function c1fun of class c1 to select path to access that c1fun , as there are two paths to access that c1fun one is through the class c2 and another one is class c3. Thus we are using 1."virtual" keyword while inheriting the class c1 to c2 and c3. OR 2. we can use class name and scope operator during function call. Where these two makes a single path to access class c1.
You are a great teacher keep it up
this sir classes making me to fall in love with c++ ❤️❤️❤️👌👌
you are great sir:-
very nice way of teaching sir i cleared my all doubt thank virtual function in hierarchical inheritance
Me classes Chala bagunayi sir e lockdown type lo degree valaki Chala use avuthundhi sir tq a lot ...simply superb......slow GA superb ga ardham ayatatu chapthunaru😇😇
It's really a helpful video sir...👌👌👍👍
Very nice explanation sir. Thank you very much.
rather than calling it virtual class it is usually referred as virtual inheritance.
Exceptional explanation add more c++ courses pls...
simple easy language. Descent... appreciated . :) nice one
Thanku from Sri Lanka ❤
thank you sir for your explanation
sir, please upload the virtual function concept, I m a huge fan of yours.
Thanks you so much sir🙏🙏
Its really helpful
Over-riding programs are not there in c++ programs list. Kindly upload that too sir .
sir please add your virtual functions concept
Sir your explanation is very easy to understand
Your explanation is very good sir that I could understand very easily and I subscribed you sir thank you sir for such beautiful explanation that you given for virtual
Hi sir, it is nice explanation. But I want to know some what in depth like only one copy created then in which way it will go to class D. And there is virtual key word with class so vptr and vtable will create or not if yes then how it will work can you explain about it. On board.
Pls Add about function overloading and inline functions videos
Yes sir . Please
so we should use virtual in hybrid inheritance or not?
Sir wonderful explanation given
Excellent explanation
Sir your not uploaded the over riding concept lecture .
Overriding n virtual function vdeos are not here ?
U said that it is not possible in iheritance but again u r saying that is multiple inheritance
Plzz provide secreenshot of every program
Add virtual function concept sir....
excellent ❤️❤️👌👌👌
Sir my university definitely need you
It is diamond problem.. multipath inheritance
what about d videos on polymerization.
What is difference b/w virtual base class and virtual function? I m confuse or i dont know what to write in this.....plz help me 🙏sir
if i'm not wrong the virtual base class is used for to avoid duplication of data and ambiguity problem when we are deal with multipath inheritance and virtual function is useful feature in cpp to achieve run time polymorphism...i.e in function overriding problem...
@@virendramane7818 thanks👍
Sir can you explain the concept of polymorphism plz...
sir in class c4,we will not add by writting like
class c4:public virtual c1,public virtual c2 ...clearify sir this please
Can we create c2,c3 and c1 object?
Can you explain data structure in c++?
subscribe to @abdul bari data structures
🔥💯...good
Thank you sir
Sir, please upload virtual function lecture video
sir where r the videos of overriding and overloading
Which copy will be bypass sir
Dynamic binding concept is missing sir..
Very nice sar
According to what I learnt from my teacher, This concept is called Virtual Inheritance not virtual class. Is it true? I am confused...
There is nothing like virtual inheritance.He just explained the situation when and how virtual class is used.
#include
using namespace std;
class A
{
public: void fun()
{
cout
virtual functions
Sir plz make ur text size as larger
#include
using namespace std;
class c1
{
public:
void c1fun()
{
cout
Yes you are correct
Nobody talks about the real thing
Hybrid inheritance
this is called as Diamond problem.
In C# not in c++
bloody waste.
Thank you sir