Click here to Skip to main content
15,301,401 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a program that can add information to the database(datagridview)and i want to convert this program to Multiple Inheritance what can i do?
this my code:
userEntities am = new userEntities();
     Table_1 ta = new Table_1();
     ta.ID = Convert.ToInt32(textBox6.Text);
     ta.name = textBox9.Text;
     ta.last_name = textBox8.Text;
     ta.phon_number = maskedTextBox2.Text;
     ta.adress = textBox7.Text;
     am.AddToTable_1(ta);
     am.SaveChanges();
     showdata();

help me tanks
Posted

1 solution

Multiple inheritance does not exist in C#.
   
Comments
amirmohamad 15-Aug-12 3:25am
   
are you sure?
StianSandberg 15-Aug-12 3:47am
   
yes
daghune 16-Aug-12 2:37am
   
TU HALGHAM
Philip Stuyck 15-Aug-12 3:29am
   
What does exist is interfaces. You can inherit from one class only but you can implement multiple interfaces. What those interfaces should be is not clear from the code snippet you gave here.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900