本文整理汇总了C#中Degree.print方法的典型用法代码示例。如果您正苦于以下问题:C# Degree.print方法的具体用法?C# Degree.print怎么用?C# Degree.print使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Degree
的用法示例。
在下文中一共展示了Degree.print方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
string[] atts = { "Sophie", "Greene", "1/12/1991", "30 Some Street", "", "Leeds", "West Yorkshire", "ZE7 3AE", "UK","Student" };
string[] att = { "Manual", "Zu", "1/12/1937", "30 Other Street", "", "Sheffield", "West Yorkshire", "LE7 9MN", "UK","Teacher" };
Person student = new Person(atts);
student.print();
Person teacher = new Person(att);
teacher.print();
//ensure console window stays open
string[] pAtt = {"Intro to Computer Science","Some Guy","BSc. blah blah" };
UProgram prog = new UProgram(pAtt);
prog.print();
Degree deg = new Degree("Bsc. A M", 72);
deg.print();
Course cour = new Course("Intro hbla", 3, 9, "Mr blah Person");
cour.print();
Console.Read();
}