I built two different classes and I want that one class get inherit from another ,
but when I build Constructions Compiler throw me an Error.
I get to conclusion that i must use base function
so I build Constructor like this one : public name_class:base()
my question what do I put between parentheses and if my syntax o.k and what is the right way to built such constructor
It's O.K. this thing I understand I mean syntax of building Constructors and call for Metgods of parents, I tried a couple things and here what I got : public Name_of Chuld (type_of_variable name_of_it):base(name_of_this_variable_in_Parent)
and when I call for parent function : base.Name_ofParentFunction();
are the other way of doing so, and how it will look like for calling Parent function that get's some variables from Main for example ?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.