Visual ++ print from main with inheritance on visual form in listbox
- by captencrunch
I´ve made a "main" class lets call it A(Veichle),
and i have two classes that inherits from A Lets call them B(Car) and C(MC).
i also have a handler lets call it "D" that binds A,B and C.
Then i have the Form1 class lets call that E(Visual)
I want to print out the private members from A on the visual form "E" in a Listbox
If i try ex)
this-listbox1-items-add(X.veichles[i]-getBrand());
it complains that veichles is a private member in D.
How can i get around that?