Inherit class members

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Order class which contains a collection member of OrderLine classe

Orde
Order.OrderLin
Order.OrderLineCollectionBas

When I inherit the Order class, can I override a member from the OrderLine class
 
if you declare a private member in your base class :

Public class Order

Private OrderLineCollectionBase As Collection

End Class

you couldn't access to it from classes that inherit Order class; but if you
declare it as private you can access to it.
using the key word " overridable " is only possible for methods or
properties.

hope i have answered to your question.
 
Back
Top