多重继承程序 [英] Multiple Inheritance programm
本文介绍了多重继承程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个可以向数据库(datagridview)添加信息的程序,我想将此程序转换为多重继承,我该怎么办?
这是我的代码:
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
推荐答案
C#中不存在多重继承.
Multiple inheritance does not exist in C#.
这篇关于多重继承程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文