Destructors in Inheritance | C++ Tutorial | Mr. Kishore

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 9

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

    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

  • @ajaykharat8689
    @ajaykharat8689 6 років тому +8

    #include
    using namespace std;
    class base
    {
    public:
    ~base()
    {
    cout

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

    Sir your teaching concept is too good

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

    Thank u very much sir for giving us so helpful video lectutes
    Once again i am very thank full to you
    * keep making this type of videos on computer language *
    Thanks to whole naresh it team

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

    Nice explaination sir!

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

    In the video for destructor in c++ we were told that destructor cannot take part in inheritance!

    • @dh.418
      @dh.418 Рік тому

      Really, ? I am skipping the video, then,

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

      Hey there! Who told you that a destructor can't participate in inheritance? Inheritance involves inheriting properties from one class to another. Now, let's discuss classes. If a class is being discussed, then objects are also a part of inheritance. If an object is present, so is the constructor, as the constructor assigns values to the object. When objects are used in a program, resources allocated to them need to be freed, and that's where the destructor comes in. In fact, destructors and constructors are both components of class creation."

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

    Nice explain the concept sir