Enau:
Not possible, you cannot inherit from instances. You would need to create a class for the child and inherit the parent one.I have a parent class
and I create an instance
So far so good. i want a child class
of '' MY_OWN_Parent_class '' instead of creating a child class of '' Parent_class " and then somehow linking it to " MY_OWN_Parent_class ".
is this possible ?
What's the use case? Maybe there's a better solution.
Ok thanks. I think my case is too tedious to describe and i have way to get what i want, but it's way longer than just inheriting from an instance.
What would be a use case for inheriting from an instance? You inherit from a definition.
Is there a language that supports inheritance from an instance? And why would that be useful?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a parent class
and I create an instance
So far so good. i want a child class
Child_of_MY_OWN_Parent_class : public MY_OWN_Parent_class
of '' MY_OWN_Parent_class '' instead of creating a child class of '' Parent_class " and then somehow linking it to " MY_OWN_Parent_class ".
is this possible ?