![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Inheritance problem
I have two classes A and B. B inherits A, somthing like this
public Class A: Windows.Form
{
private Button btn1;
public TextBox txt1;
}
public Class B:A
{
public TextBox txt2;
}when i display form B, I get the button from A in addition to both text boxes. My questions is, how do i get B to inherit all of A's NON PRIVATE members only? (I don't want the button to show up in B) Thank you |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|