After asking a question. Call a method that requires an instance of a derived class, introduced as a base class in VB.NET or C # in Stack Overflow, I was informed that I used the wrong terms when asking the question. I used “parent” and “child”, where instead I would use “base” and “derived”.
I could not find a good description of the difference.
This is what I know (or think I know):
The parent class contains the child class. Where, as a derived class, the base class is inherited.
They are similar because the child (or derivative) can access the parent (or base) properties and methods (where allowed).
They are different because you can refer to a property of a child class in the form Parent.Child.Property . If you cannot do this with a derived class.
What is the difference and in which situation should I use another?
Gravitate
source share