1.5

所属分类:C#编程
开发工具:C#
文件大小:10KB
下载次数:4
上传日期:2008-12-29 07:31:17
上 传 者qbb3050466
说明:  编写一个控制台应用程序,完成下列功能,并回答提出的问题。 1) 创建一个类A,在构造函数中输出“A”,再创建一个类B,在构造函数中输出“B”。 2) 从A继承一个名为C的新类,并在C内创建一个成员B。不要为C创建构造函数。 3) 在Main方法中创建类C的一个对象,写出运行程序后输出的结果。 4) 如果在C中也创建一个构造函数输出“C”,整个程序运行的结果又是什么? 6. 编写一个控制台应用程序,完成下列功能,并写出运行程序后输出的结果
(Write a console application, complete the following features, and answer questions. 1) create a category A, in the constructor of the output A , then create a category B, in the constructor of the output B . 2) A succession of a new class called C and C to create a member B. Do not create a constructor for C. 3) In the Main method to create an object of type C, write the output after running the program results. 4) If C also create a constructor output C , the results of running the whole procedure, what is it? 6. Write a console application, complete the following functions, and write the output after running the program results)

文件列表:
第五题.docx (12803, 2008-12-23)

近期下载者

相关文件


收藏者