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
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
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."
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
#include
using namespace std;
class base
{
public:
~base()
{
cout
Sir your teaching concept is too good
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
Nice explaination sir!
In the video for destructor in c++ we were told that destructor cannot take part in inheritance!
Really, ? I am skipping the video, then,
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."
Nice explain the concept sir