Thank you very much sir, I'm feeling proud to say that I'm your student. Really sir, You have done a very very good jod by providing us such a deep abstraction in C++.
Thnk u Sir.. Due to lockdown we have using zoom online classes but due to poor network it's worthless but due to ur awsome video I'm able to understand this tutorial. Thnku so much again
your videos are awesome and make all r concepts clr about a specific topic thank u so mch sir ....... only ur videos help me in understanding basically what the c++is
I just wanted to ask that in the derived class you did not included the public accessor before defining the disp function. Correct me if I am wrong. Other than that your videos are great, keep making more and more...Thanks
Sir, u explain very good but also tell reasons behind like why we cannot make object of abstract class or why we use pure virtual class concept how it helps the programmers.
@@Kids-Corner-00 when it doesn’t make sense to provide a definition for a virtual function in the base class itself, within the context of inheritance. For example, let’s say that you have a base class called Figure. Figure class has a function called draw (). And, other classes like Circle and Square derive from the Figure class. In the Figure class, it doesn’t make sense to actually provide a definition for the draw() function, because of the simple and obvious fact that a “Figure” has no specific shape. It is simply meant to act as a base class. Of course, in the Circle and Square classes it would be obvious what should happen in the draw() function
Please the arrange the sequence of videos [ 82->83->81->84], because to understand run time polymorphism we need to understand the virtual function & abstract class
+ashish pandey When the main() function in of integer return type then the compiler expects an integer value to be returned to the operating system when the main() function is terminated(program execution finished). 0 is returned to indicate that the program has run successfully. In fact you can return any value (or even omit this return statements for some compilers)
Well you cannot return **any** value in case you are running on linux. Linux expects '0' if everything went well, if something went wrong only then a program must return a non zero value, so that the os can see what's happening and inform the user something went wrong. The error code that you passed may be helpful for further digging into the problem
when we use same name of function in different classes then we use pure virtual function ,like void show() is from class base and also we use void show in dried class then we use virtual function.mean same function but different implementation
Sir mujhe c, c++ apki padhai hui hi smj aati h .....apne aage videos bnani band q kr di ....please make videos on templates 🙏🙏🙏......and thank u for your efforts sir
Thank you very much sir, I'm feeling proud to say that I'm your student.
Really sir, You have done a very very good jod by providing us such a deep abstraction in C++.
Thank you so much for your kind words brother. Keep learning. GOD BLESS YOU :)
Thnk u Sir.. Due to lockdown we have using zoom online classes but due to poor network it's worthless but due to ur awsome video I'm able to understand this tutorial. Thnku so much again
its just outclass* very well explained everything.
india pakistan united by C++ seperated by border :D
waha padhai v hota h...lol...hahaha
@@RathourShubham you sucks
Asim Javed NEPAL 🇳🇵 too bro😂
@@RathourShubham shi bole
@@RathourShubham tumhry is cmnt n sabit krdia k kahan parhai hota h or kahan ni
suprbbb....u r one of the best...teachr for c++
I listen ur lecture after listening our professor's lec
Then every cury solve.
Sir your method of teaching is very good and thanks for examplethat you are giving with your statement
Great explanation
Thank you sir
your videos are awesome and make all r concepts clr about a specific topic thank u so mch sir ....... only ur videos help me in understanding basically what the c++is
I'm really very HAPPY to know. Keep learning. GOD BLESS YOU :)
I just wanted to ask that in the derived class you did not included the public accessor before defining the disp function. Correct me if I am wrong. Other than that your videos are great, keep making more and more...Thanks
Same confusion mine too . . .
May be Sir forget the "public:" accessor !
if sir compile this code then generate code disp() is nor accessible because disp() is private method
@@hafizumer9424 yes he forgets to add public 😍😍😍😍
Sir, u explain very good but also tell reasons behind like why we cannot make object of abstract class or why we use pure virtual class concept how it helps the programmers.
Thanks sir
better explain sir and easy pro i am very very happy ..
sir you are great your all c++ topic i am easily understand thank you very very much sir
great sir....
your explanation is soo simple and accurate 👌🏻
Thank you brother. Keep learning :)
please upload video on early binding and difference between early and late binding
bahut badhiya bhaiya,
sach me gazab samjhaate ho
this is the best.......n youtube video thank's sir
well explained sir!
I just want to know, is there any video lecture regarding virtual constructor and virtual destructor?
Excellent video Sir,and two method I compile and run and get same result I understand fully. Thank you sir
Sir kindly make a vedio for meta class
Sir ur lectures r amazing! Sir plz provide or solve more examples on this to make us more confident in this topic
refer geeksforgeeks... It comprises a lot of examples...
Thank you so much sir
thank u sir, i am getting very easily....
if you can pls provide lecture on c++ STL...pls
Outstanding and he told in very ez way
Love from 🇵🇰
Sirrrrrrrrrr ur osmmmm
You're welcome dear. Keep learning :)
Mindblowing explanation sir 🫡🙏
awesome explanation sir
So informative
I wish ap hamary teacher hoty bcz your every lecture is very useful for us
Veri nice sir 👍👏😊
bhot acha samjhaya sir ji ...thanks
+mahesh behera, You're welcome dear :)
Thanks sir u r awsome 😘
+kavita chowdhary, You're welcome dear :)
if anyone is wondering in derived class why he didnt make disp function public, its a mistake guys. Focus on program
its not any mistake , he defined access modifier when defining the deriving the pure virtual function class
nice ap bht axhe se smjhte ho java pe b bnao or
Simple and understandable!!
Thanks sir 😁
Thanks
You are great sir
thank you sir ...i understood easily... thank you..
+suraj kulkarni, You're welcome dear. Keep learning :)
Superb sir hats off
Thanku so much sir 😊😊😊
sir why we make pure virtual function ???
its also my question .because it works same as virtual function then why make pure virtual function ...? hope so we'll get our ans :)
@@Kids-Corner-00 when it doesn’t make sense to provide a definition for a
virtual function in the base class itself, within the context of inheritance.
For example, let’s say that you have a base class called Figure. Figure class has a function called draw (). And, other classes like Circle and Square derive from the Figure class. In the Figure
class, it doesn’t make sense to actually provide a definition for the draw() function, because of
the simple and obvious fact that a “Figure” has no specific shape. It is simply meant to act as a
base class. Of course, in the Circle and Square classes it would be obvious what should happen in
the draw() function
thank u sir from nepal
helpful explanation
ty sir...
You're welcome dear :)
apoorva bhandari 😍
really helpful for students whose teachers are dumb to make them understand ........
nyc speech
nyc
nyc
Thank U sir
Awesome,
Super sir
sir, why should we use abstract class in program,, in which situations???
Tqs bro
Sir I scored 8 in 40 Mark's computer exam in class 11 c++ now I have 20 days left for my final exam what to do sir...
study
Kuch b ni kro bro
awesome
sir your program is correct but unable to execute by creating an object for derived class.Its running fine if your create pointer for base class.
Sir,thoda smile krke pdaya kro...😊
plzz sir make a serious of data structure..
Please the arrange the sequence of videos [ 82->83->81->84], because to understand run time polymorphism we need to understand the virtual function & abstract class
Thank you sir it was so helpful . i am from pakistan
You're welcome brother. Keep learning :)
What if a class having a pure virtual function and a normal function with a body, then is it a abstract class ?
It is still an abstract class. Any class that has a minimum of one pure virtual function is an abstract class. Hope that helps.
#include
#include
using namespace std;
class Base
{
public:
virtual void disp()=0;
};
class Derived : public Base
{
public:
void disp()
{
cout
9:00
maja aavi gay
sir kindly function overriding ki b video upload kary
sir, ek c# ka videos bana dijia na..bahat achcha hota
Sir yaha par class d me apne public ni likha hai... By default ye void display () private ho jayega na...
How can we access the native members of derived class by virtual keyword
Pure virtual function turbo c++ compiler me run karega??
#include
#include
using namespace std;
class Base
{
public:
virtual void disp()=0;
};
class Derived : public Base
{
public:
void disp()
{
cout
Sir, what is the use of return 0? What actually does it returns?
+ashish pandey When the main() function in of integer return type then the compiler expects an integer value to be returned to the operating system when the main() function is terminated(program execution finished).
0 is returned to indicate that the program has run successfully.
In fact you can return any value (or even omit this return statements for some compilers)
Well you cannot return **any** value in case you are running on linux. Linux expects '0' if everything went well, if something went wrong only then a program must return a non zero value, so that the os can see what's happening and inform the user something went wrong. The error code that you passed may be helpful for further digging into the problem
Wen can written it just to tell the compiler that the program is terminated by 0
Sir all process of teaching is good but you are rough program after write small program
i can understand the concept of pure virtual function but why do we use
pure virtual function......
when we use same name of function in different classes then we use pure virtual function ,like void show() is from class base and also we use void show in dried class then we use virtual function.mean same function but different implementation
sr queue ka lecture upload kejiye na
sir, concrete class plse describe ..
Sir template class aur function ke upad video banayi a
Advertise bhar bhar ke dale hai upar se program bhi wrong hai.
8:46
Sir isme function overriding v hue h na
Nahi.
sir base class ka pointer banabe k baad be error ata h aisa q sir plzzz answer me
pls reply to my answer as soon as possible
Sir plz until a program complete plz dont rough the program
hii sir apane derived class me acces specifers nahi deya he corrrection he
ji haa, aap derived class me public: access specifier ka use kare
ap peechy wala code mita dety hain ye zayadti krty hain itna bara white board hai is pe aik side se start kiya kren takay code pura a jaye
sir why do we need abstract class?
Abstract class is created for generalization and its keep common property of derived class.
Sir mujhe c, c++ apki padhai hui hi smj aati h .....apne aage videos bnani band q kr di ....please make videos on templates 🙏🙏🙏......and thank u for your efforts sir
sir in class D you didn't write public
yes
Its a wrong program, public use nahi kiya derived class me.
Mistake ho gya Base obj ki jagh B obj likh diye
Sir run kor6e na program
Adds kaam ho to padha acha se jaega
Bahut jayada adds ati hai
please explain first why we need abstract class and pure virtual function then start..
Writing shi krle terii pura program dikha kr example diya kr
😥😰
thanks sir
Thank you so much
thank you so much sir
thank u sir