Possible Duplicate:
c# multiple inheritance
Am just creating a simple application using Asp.net, here I have 3 classes User, Staff, Student. In the User class I've properties like UserName, Password, Email and Mobile and in the Staff and Student class General details like FirstName, MiddleName, LastName as well as Email, Mobile.
Here whenever I add a new Staff or Student, I've to create a user account for them.
so in the User class, I tried, inheriting the Staff class, so that I can access the properties in the User class from the Staff.
after adding the staff data successfully, I need to call the Add(I have this already) method in the user class which ll create a user account for the staff with his datas.
And one more thing, I know that C# doesn't support multiple inheritance, here I need to inherit both Staff and Student class. how can I do this.
Can anyone help me here.