是大侠的过来看一下这个两个程序的运行结果是什么?
1.看以下程序,写出该程序运行结果:? using System;
? class A
? {
? public A() { Console.Write("Constructing base..."); }
? ~A() { Console.Write("Destructing base..."); }
? }
? class B:A
? {
? public B() { Console.Write("Constructing derived..."); }
? ~B() { Console.Write("Destructing derived..."); }
? }
? class Program
? {
? static void Main(string[] args)
? {
? B b = new B();
? }
? }
? Constructing base...
? Constructing derived...
? Destructing derived...
? Destructing base...
?
2.窗体上有一个命令按钮button1和一个标签控件label1,并有以下程序:
? public enum WeekDay
? {
? Sunday,Monday,Tuesday,Wednesday,
? Thursday=-1,Friday,Saturday
? }
public button1_Click(object sender,EventArgs e)
{
WeekDay day=WeekDay.Friday+1;
label1.Text=day.ToString();
}
则程序运行后,单击命令按钮,标签上显示的内容为? 。