Abstract Classes and Pure Virtual Functions in C++ (HINDI)

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • Pure Virtual Functions in C++ (HINDI)
    Abstract Classes C++ (HINDI)
    Subscribe : bit.ly/XvMMy1
    Website : www.easytuts4yo...
    FB : / easytuts4youcom

КОМЕНТАРІ • 141

  • @the_khan_g
    @the_khan_g 7 років тому +15

    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++.

    • @easytuts4youcom
      @easytuts4youcom  7 років тому +5

      Thank you so much for your kind words brother. Keep learning. GOD BLESS YOU :)

  • @lilimadharua8103
    @lilimadharua8103 4 роки тому +5

    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

  • @amarashah3430
    @amarashah3430 7 років тому +5

    its just outclass* very well explained everything.

  • @Wanderlust1342
    @Wanderlust1342 7 років тому +48

    india pakistan united by C++ seperated by border :D

  • @Ansh_life
    @Ansh_life 5 років тому +1

    suprbbb....u r one of the best...teachr for c++

  • @syedarslanhaidersherazi1693
    @syedarslanhaidersherazi1693 4 роки тому +1

    I listen ur lecture after listening our professor's lec
    Then every cury solve.

  • @pratikshapandittiwari6453
    @pratikshapandittiwari6453 4 роки тому

    Sir your method of teaching is very good and thanks for examplethat you are giving with your statement

  • @ManOfVines
    @ManOfVines 4 місяці тому

    Great explanation
    Thank you sir

  • @divyasharma8886
    @divyasharma8886 7 років тому +2

    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

    • @easytuts4youcom
      @easytuts4youcom  7 років тому +1

      I'm really very HAPPY to know. Keep learning. GOD BLESS YOU :)

  • @mustafasaleem7468
    @mustafasaleem7468 7 років тому +5

    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

    • @amritparajuli4594
      @amritparajuli4594 7 років тому

      Same confusion mine too . . .

    • @hafizumer9424
      @hafizumer9424 6 років тому +2

      May be Sir forget the "public:" accessor !
      if sir compile this code then generate code disp() is nor accessible because disp() is private method

    • @sakshamsharma5170
      @sakshamsharma5170 2 роки тому

      @@hafizumer9424 yes he forgets to add public 😍😍😍😍

  • @viditkhanna3721
    @viditkhanna3721 6 років тому +1

    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.

  • @nikitagirase6282
    @nikitagirase6282 4 роки тому

    Thanks sir

  • @neerajrai7942
    @neerajrai7942 7 років тому +1

    better explain sir and easy pro i am very very happy ..

  • @darshanthakor5597
    @darshanthakor5597 4 роки тому

    sir you are great your all c++ topic i am easily understand thank you very very much sir

  • @mushtaqmahboob8263
    @mushtaqmahboob8263 7 років тому +1

    great sir....
    your explanation is soo simple and accurate 👌🏻

  • @saimakauser3418
    @saimakauser3418 8 років тому +1

    please upload video on early binding and difference between early and late binding

  • @satishmaurya2089
    @satishmaurya2089 5 років тому

    bahut badhiya bhaiya,
    sach me gazab samjhaate ho

  • @abhishekbcafrombmiit5470
    @abhishekbcafrombmiit5470 7 років тому

    this is the best.......n youtube video thank's sir

  • @gargumang99
    @gargumang99 8 років тому +1

    well explained sir!
    I just want to know, is there any video lecture regarding virtual constructor and virtual destructor?

  • @snehajitchandra2976
    @snehajitchandra2976 6 років тому

    Excellent video Sir,and two method I compile and run and get same result I understand fully. Thank you sir

  • @pratikshapandittiwari6453
    @pratikshapandittiwari6453 4 роки тому +1

    Sir kindly make a vedio for meta class

  • @supreetha1675
    @supreetha1675 5 років тому +2

    Sir ur lectures r amazing! Sir plz provide or solve more examples on this to make us more confident in this topic

    • @RathourShubham
      @RathourShubham 4 роки тому

      refer geeksforgeeks... It comprises a lot of examples...

  • @ifthkarshiehik2510
    @ifthkarshiehik2510 Рік тому

    Thank you so much sir

  • @sabinayasmin5838
    @sabinayasmin5838 8 років тому +1

    thank u sir, i am getting very easily....
    if you can pls provide lecture on c++ STL...pls

  • @qwuser883
    @qwuser883 4 роки тому

    Outstanding and he told in very ez way

  • @Abdullah_Cheema
    @Abdullah_Cheema 4 роки тому +1

    Love from 🇵🇰

  • @ashishverma7912
    @ashishverma7912 8 років тому +3

    Sirrrrrrrrrr ur osmmmm

  • @gulabchandgupta5486
    @gulabchandgupta5486 Рік тому

    Mindblowing explanation sir 🫡🙏

  • @romiljain9674
    @romiljain9674 7 років тому +1

    awesome explanation sir

  • @allahrasoolkadeen6520
    @allahrasoolkadeen6520 3 роки тому

    So informative

  • @noorkhattak9247
    @noorkhattak9247 5 років тому

    I wish ap hamary teacher hoty bcz your every lecture is very useful for us

  • @muskanpawar2268
    @muskanpawar2268 2 роки тому

    Veri nice sir 👍👏😊

  • @maheshbehera4427
    @maheshbehera4427 9 років тому +1

    bhot acha samjhaya sir ji ...thanks

  • @kavitachowdhary3873
    @kavitachowdhary3873 8 років тому +1

    Thanks sir u r awsome 😘

  • @Ary2345
    @Ary2345 7 місяців тому +1

    if anyone is wondering in derived class why he didnt make disp function public, its a mistake guys. Focus on program

    • @4bhigmrs900
      @4bhigmrs900 6 місяців тому

      its not any mistake , he defined access modifier when defining the deriving the pure virtual function class

  • @Ravvi1351
    @Ravvi1351 7 років тому +1

    nice ap bht axhe se smjhte ho java pe b bnao or

  • @hpartncraftstudio2769
    @hpartncraftstudio2769 4 роки тому

    Simple and understandable!!

  • @vinayakpuri3855
    @vinayakpuri3855 Рік тому

    Thanks sir 😁

  • @yashparamr4261
    @yashparamr4261 Рік тому

    Thanks

  • @Deepakdodwe12
    @Deepakdodwe12 4 роки тому

    You are great sir

  • @easy-waytolearn4118
    @easy-waytolearn4118 8 років тому

    thank you sir ...i understood easily... thank you..

    • @easytuts4youcom
      @easytuts4youcom  8 років тому

      +suraj kulkarni, You're welcome dear. Keep learning :)

  • @faisalqayyum586
    @faisalqayyum586 8 років тому

    Superb sir hats off

  • @shifashif4411
    @shifashif4411 4 роки тому

    Thanku so much sir 😊😊😊

  • @mrcadbury7529
    @mrcadbury7529 7 років тому +12

    sir why we make pure virtual function ???

    • @Kids-Corner-00
      @Kids-Corner-00 5 років тому

      its also my question .because it works same as virtual function then why make pure virtual function ...? hope so we'll get our ans :)

    • @RathourShubham
      @RathourShubham 4 роки тому +3

      @@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

  • @baniyakapil2628
    @baniyakapil2628 7 років тому

    thank u sir from nepal

  • @shrutikanikhar7987
    @shrutikanikhar7987 4 роки тому

    helpful explanation

  • @apoorvabhandari6496
    @apoorvabhandari6496 8 років тому +2

    ty sir...

  • @amritsharma6067
    @amritsharma6067 6 років тому

    really helpful for students whose teachers are dumb to make them understand ........

  • @iftikharmehmood7506
    @iftikharmehmood7506 7 років тому +1

    nyc speech

  • @Rushikesh7931
    @Rushikesh7931 8 років тому

    Thank U sir

  • @luckyminhas4130
    @luckyminhas4130 6 років тому

    Awesome,

  • @nareshsahu1354
    @nareshsahu1354 5 років тому

    Super sir

  • @shahkirkarimkhan5381
    @shahkirkarimkhan5381 5 років тому +1

    sir, why should we use abstract class in program,, in which situations???

  • @ashishm5237
    @ashishm5237 5 років тому

    Tqs bro

  • @sonadey767
    @sonadey767 5 років тому +3

    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...

  • @islamapologist5756
    @islamapologist5756 7 років тому

    awesome

  • @saiyed100
    @saiyed100 5 років тому

    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.

  • @swetapandey14
    @swetapandey14 4 роки тому +1

    Sir,thoda smile krke pdaya kro...😊

  • @surajtopal9940
    @surajtopal9940 7 років тому

    plzz sir make a serious of data structure..

  • @mausamyadav3522
    @mausamyadav3522 3 роки тому

    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

  • @AsimAli-pr6tv
    @AsimAli-pr6tv 7 років тому +3

    Thank you sir it was so helpful . i am from pakistan

  • @mayukhdas3112
    @mayukhdas3112 4 роки тому +1

    What if a class having a pure virtual function and a normal function with a body, then is it a abstract class ?

    • @muhammadmwahid8853
      @muhammadmwahid8853 4 роки тому +2

      It is still an abstract class. Any class that has a minimum of one pure virtual function is an abstract class. Hope that helps.

  • @TechTrinketHub247
    @TechTrinketHub247 Рік тому

    #include
    #include
    using namespace std;
    class Base
    {
    public:
    virtual void disp()=0;
    };
    class Derived : public Base
    {
    public:
    void disp()
    {
    cout

  • @sakshamsharma5170
    @sakshamsharma5170 2 роки тому +1

    9:00

  • @princesoni5595
    @princesoni5595 2 роки тому

    maja aavi gay

  • @softwareengineeringlecture1389
    @softwareengineeringlecture1389 5 років тому

    sir kindly function overriding ki b video upload kary

  • @sgh963
    @sgh963 7 років тому

    sir, ek c# ka videos bana dijia na..bahat achcha hota

  • @mayanksingh-fq6nb
    @mayanksingh-fq6nb 5 років тому

    Sir yaha par class d me apne public ni likha hai... By default ye void display () private ho jayega na...

  • @sanjeevtyagi8819
    @sanjeevtyagi8819 4 роки тому

    How can we access the native members of derived class by virtual keyword

  • @surusah1307
    @surusah1307 3 роки тому

    Pure virtual function turbo c++ compiler me run karega??

  • @TechTrinketHub247
    @TechTrinketHub247 Рік тому

    #include
    #include
    using namespace std;
    class Base
    {
    public:
    virtual void disp()=0;
    };
    class Derived : public Base
    {
    public:
    void disp()
    {
    cout

  • @ashishpandey6482
    @ashishpandey6482 8 років тому

    Sir, what is the use of return 0? What actually does it returns?

    • @haseeb0610
      @haseeb0610 8 років тому +2

      +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)

    • @ramachandrajr9565
      @ramachandrajr9565 7 років тому +1

      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

    • @PardeepKumar-hm8sj
      @PardeepKumar-hm8sj 6 років тому

      Wen can written it just to tell the compiler that the program is terminated by 0

  • @talibabbas6779
    @talibabbas6779 4 роки тому

    Sir all process of teaching is good but you are rough program after write small program

  • @vishalkumar-nu4ct
    @vishalkumar-nu4ct 7 років тому +1

    i can understand the concept of pure virtual function but why do we use
    pure virtual function......

    • @malikfaheem6630
      @malikfaheem6630 6 років тому

      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

  • @laveshkumar9995
    @laveshkumar9995 7 років тому

    sr queue ka lecture upload kejiye na

  • @soumenguria5641
    @soumenguria5641 7 років тому

    sir, concrete class plse describe ..

  • @birajdaimary2429
    @birajdaimary2429 5 років тому

    Sir template class aur function ke upad video banayi a

  • @sumeet602
    @sumeet602 5 років тому

    Advertise bhar bhar ke dale hai upar se program bhi wrong hai.

  • @sakshamsharma5170
    @sakshamsharma5170 2 роки тому

    8:46

  • @hiteshsahu7243
    @hiteshsahu7243 7 років тому

    Sir isme function overriding v hue h na

  • @rohabafridi6377
    @rohabafridi6377 6 років тому

    sir base class ka pointer banabe k baad be error ata h aisa q sir plzzz answer me

  • @vishalkumar-nu4ct
    @vishalkumar-nu4ct 7 років тому +1

    pls reply to my answer as soon as possible

  • @talibabbas6779
    @talibabbas6779 4 роки тому

    Sir plz until a program complete plz dont rough the program

  • @ajinkyabhosale7258
    @ajinkyabhosale7258 2 роки тому

    hii sir apane derived class me acces specifers nahi deya he corrrection he

    • @easytuts4youcom
      @easytuts4youcom  2 роки тому +1

      ji haa, aap derived class me public: access specifier ka use kare

  • @muhammadshahzebpasha8782
    @muhammadshahzebpasha8782 5 років тому

    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

  • @socialbarsha3303
    @socialbarsha3303 5 років тому

    sir why do we need abstract class?

    • @saiyed100
      @saiyed100 5 років тому

      Abstract class is created for generalization and its keep common property of derived class.

  • @nishapanchal4810
    @nishapanchal4810 4 роки тому

    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

  • @sayedakaonain4608
    @sayedakaonain4608 8 років тому

    sir in class D you didn't write public

  • @sumeet602
    @sumeet602 5 років тому

    Its a wrong program, public use nahi kiya derived class me.

  • @anupjio6864
    @anupjio6864 5 років тому

    Mistake ho gya Base obj ki jagh B obj likh diye

  • @anayghosh8501
    @anayghosh8501 5 років тому

    Sir run kor6e na program

  • @arpitsharma933
    @arpitsharma933 5 років тому

    Adds kaam ho to padha acha se jaega

  • @arpitsharma933
    @arpitsharma933 5 років тому

    Bahut jayada adds ati hai

  • @ajay2709
    @ajay2709 6 років тому

    please explain first why we need abstract class and pure virtual function then start..

  • @lavishmalhotra262
    @lavishmalhotra262 6 років тому

    Writing shi krle terii pura program dikha kr example diya kr

  • @SurjeetSingh-rm1gj
    @SurjeetSingh-rm1gj Рік тому

    😥😰

  • @ayushkumar5534
    @ayushkumar5534 9 років тому +1

    thanks sir

  • @anuprash347
    @anuprash347 6 років тому

    Thank you so much

  • @thegorillaz4759
    @thegorillaz4759 5 років тому

    thank you so much sir

  • @VIKRAMSINGH-nb2ls
    @VIKRAMSINGH-nb2ls 7 років тому

    thank u sir