2021-06-03

北大青鸟8.0第一章深入.NET框架课后简答题Mario


```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mario
{
    class Mario
    {
        private int width;

        public int Width
        {
            get { return width; }
            set { width = value; }
        }
        private int height;

        public int Height
        {
            get { return height; }
            set { height = value; }
        }
        private int picture;

        public int Picture
        {
            get { return picture; }
            set { picture = value; }
        }
        private int Bpicture;

        public int Bpicture1
        {
            get { return Bpicture; }
            set { Bpicture = value; }
        }
        private string fire;

        public string Fire
        {
            get { return fire; }
            set { fire = value; }
        }
        private int heathy;

        public int Heathy
        {
            get { return heathy; }
            set { heathy = value; }
        }

        public void Run()
        {
            Width = 10;
            Height = 10;
            Picture = 20;
            Bpicture1 = 50;
            Heathy = 100;
            Fire = "开火";
            Console.WriteLine("玛丽跑了{0}米,他具有{1},身体变宽{2}米,变高{3}米,血量剩余{4}.", Bpicture - picture, fire, width, height, heathy);
            Console.ReadLine();
        }
    }
}

##选择题
一.1.C 2.B 3.A 4.D 5.A

二.1.CLR和FCL

2.是所有.NET应用程序运行时的环境,是所有.NET应用程序都要使用的编程基础。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值