Virtual class in C++ | C++ Tutorial | Mr. Kishore

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2025

ความคิดเห็น • 66

  • @NareshIT
    @NareshIT  5 ปีที่แล้ว +4

    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

    • @canaaneric9790
      @canaaneric9790 3 ปีที่แล้ว

      A tip : you can watch movies on Flixzone. I've been using it for watching lots of of movies recently.

    • @quinnwill4520
      @quinnwill4520 3 ปีที่แล้ว

      @Canaan Eric Yup, I have been using Flixzone} for months myself :)

  • @gajulasamatha9038
    @gajulasamatha9038 ปีที่แล้ว +6

    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.

  • @prakashvij3819
    @prakashvij3819 7 ปีที่แล้ว +12

    You are a great teacher keep it up

  • @rohith5671
    @rohith5671 2 ปีที่แล้ว

    this sir classes making me to fall in love with c++ ❤️❤️❤️👌👌

  • @AbdulRahman-cm9wi
    @AbdulRahman-cm9wi 5 ปีที่แล้ว +1

    you are great sir:-
    very nice way of teaching sir i cleared my all doubt thank virtual function in hierarchical inheritance

  • @sarithapuli3667
    @sarithapuli3667 4 ปีที่แล้ว +1

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

  • @likhitachandana5588
    @likhitachandana5588 7 ปีที่แล้ว +2

    It's really a helpful video sir...👌👌👍👍

  • @madamanchinethraaruna1175
    @madamanchinethraaruna1175 5 ปีที่แล้ว +1

    Very nice explanation sir. Thank you very much.

  • @_nabin_8848
    @_nabin_8848 ปีที่แล้ว +1

    rather than calling it virtual class it is usually referred as virtual inheritance.

  • @Dida2080
    @Dida2080 7 ปีที่แล้ว +2

    Exceptional explanation add more c++ courses pls...

  • @sajaliffco
    @sajaliffco 7 ปีที่แล้ว +1

    simple easy language. Descent... appreciated . :) nice one

  • @sandaliyasara6000
    @sandaliyasara6000 2 ปีที่แล้ว

    Thanku from Sri Lanka ❤

  • @kalpanareddy4578
    @kalpanareddy4578 6 ปีที่แล้ว +3

    thank you sir for your explanation

  • @riturajanand7133
    @riturajanand7133 5 ปีที่แล้ว +2

    sir, please upload the virtual function concept, I m a huge fan of yours.

  • @YashDEVELOPER12
    @YashDEVELOPER12 3 ปีที่แล้ว

    Thanks you so much sir🙏🙏
    Its really helpful

  • @jyotiyaduwanshi5186
    @jyotiyaduwanshi5186 4 ปีที่แล้ว +3

    Over-riding programs are not there in c++ programs list. Kindly upload that too sir .

  • @dr.kdileepkumar7292
    @dr.kdileepkumar7292 7 ปีที่แล้ว +9

    sir please add your virtual functions concept

  • @nitishmc6929
    @nitishmc6929 7 ปีที่แล้ว

    Sir your explanation is very easy to understand

  • @sowdhamreddy4065
    @sowdhamreddy4065 7 ปีที่แล้ว +3

    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

  • @unknown-bc3uh
    @unknown-bc3uh 6 ปีที่แล้ว +2

    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.

  • @viswanathgupta7406
    @viswanathgupta7406 7 ปีที่แล้ว +8

    Pls Add about function overloading and inline functions videos

  • @allyouinfotech7936
    @allyouinfotech7936 2 ปีที่แล้ว

    so we should use virtual in hybrid inheritance or not?

  • @kMahnoorKhurram
    @kMahnoorKhurram 3 ปีที่แล้ว

    Sir wonderful explanation given

  • @lakshmilakku7222
    @lakshmilakku7222 4 ปีที่แล้ว

    Excellent explanation

  • @kalavathidevala4820
    @kalavathidevala4820 4 ปีที่แล้ว +1

    Sir your not uploaded the over riding concept lecture .

  • @aamirmalla9898
    @aamirmalla9898 5 ปีที่แล้ว +2

    Overriding n virtual function vdeos are not here ?

  • @candyshiva7403
    @candyshiva7403 6 ปีที่แล้ว +2

    U said that it is not possible in iheritance but again u r saying that is multiple inheritance

  • @sahirbhat5155
    @sahirbhat5155 5 ปีที่แล้ว +3

    Plzz provide secreenshot of every program

  • @sowdhamreddy4065
    @sowdhamreddy4065 7 ปีที่แล้ว +3

    Add virtual function concept sir....

  • @rohith5671
    @rohith5671 2 ปีที่แล้ว

    excellent ❤️❤️👌👌👌

  • @bmkonlinetech
    @bmkonlinetech 6 หลายเดือนก่อน

    Sir my university definitely need you

  • @kranthikumar6016
    @kranthikumar6016 ปีที่แล้ว

    It is diamond problem.. multipath inheritance

  • @rahuljain2205
    @rahuljain2205 6 ปีที่แล้ว +2

    what about d videos on polymerization.

  • @manalisamani6729
    @manalisamani6729 5 ปีที่แล้ว +5

    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

    • @virendramane7818
      @virendramane7818 4 ปีที่แล้ว +5

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

    • @manalisamani6729
      @manalisamani6729 4 ปีที่แล้ว

      @@virendramane7818 thanks👍

  • @arpithaarpi4561
    @arpithaarpi4561 7 ปีที่แล้ว +1

    Sir can you explain the concept of polymorphism plz...

  • @abhisheksahani3680
    @abhisheksahani3680 5 ปีที่แล้ว

    sir in class c4,we will not add by writting like
    class c4:public virtual c1,public virtual c2 ...clearify sir this please

  • @pratibhajaiswal9665
    @pratibhajaiswal9665 2 ปีที่แล้ว

    Can we create c2,c3 and c1 object?

  • @arpithaarpi4561
    @arpithaarpi4561 7 ปีที่แล้ว +4

    Can you explain data structure in c++?

    • @Ashwin_Dhuriya
      @Ashwin_Dhuriya 4 ปีที่แล้ว

      subscribe to @abdul bari data structures

  • @prudvireddy7022
    @prudvireddy7022 4 ปีที่แล้ว

    🔥💯...good

  • @suravighosal9934
    @suravighosal9934 3 ปีที่แล้ว

    Thank you sir

  • @harimorla2173
    @harimorla2173 4 ปีที่แล้ว

    Sir, please upload virtual function lecture video

  • @IIM_life_by_Divya
    @IIM_life_by_Divya 4 ปีที่แล้ว

    sir where r the videos of overriding and overloading

  • @udhayarajans.s1291
    @udhayarajans.s1291 4 ปีที่แล้ว

    Which copy will be bypass sir

  • @csforcommonsense3360
    @csforcommonsense3360 3 ปีที่แล้ว

    Dynamic binding concept is missing sir..

  • @rahulshinde9220
    @rahulshinde9220 6 ปีที่แล้ว

    Very nice sar

  • @bhavanah1665
    @bhavanah1665 7 ปีที่แล้ว

    According to what I learnt from my teacher, This concept is called Virtual Inheritance not virtual class. Is it true? I am confused...

    • @nikhilbrusli2087
      @nikhilbrusli2087 7 ปีที่แล้ว

      There is nothing like virtual inheritance.He just explained the situation when and how virtual class is used.

  • @shwetanknaveen
    @shwetanknaveen 6 ปีที่แล้ว +1

    #include
    using namespace std;
    class A
    {
    public: void fun()
    {
    cout

  • @viswanathgupta7406
    @viswanathgupta7406 7 ปีที่แล้ว +2

    virtual functions

  • @sathwikaadigoppula9257
    @sathwikaadigoppula9257 5 ปีที่แล้ว

    Sir plz make ur text size as larger

  • @raghavamopidevi9700
    @raghavamopidevi9700 2 ปีที่แล้ว

    #include
    using namespace std;
    class c1
    {
    public:
    void c1fun()
    {
    cout

  • @smtusharibnesalam8688
    @smtusharibnesalam8688 5 ปีที่แล้ว +2

    Nobody talks about the real thing

  • @tulasiramdhullipalla5143
    @tulasiramdhullipalla5143 6 ปีที่แล้ว

    Hybrid inheritance

  • @sammydeew4773
    @sammydeew4773 6 ปีที่แล้ว

    this is called as Diamond problem.

  • @udaykiran-wg3vb
    @udaykiran-wg3vb 3 ปีที่แล้ว

    bloody waste.

  • @deekannada1286
    @deekannada1286 ปีที่แล้ว

    Thank you sir