国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

第四章 上機1

2019-11-08 03:19:40
字體:
來源:轉載
供稿:網友
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 深入.NET平臺_第四章{   public enum Gender    {       男,女    }}
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 深入.NET平臺_第四章{    class PM    {        public string ID;        public string Name;        public int Age;        public Gender Gender;        public int YearOfExpeerience;        public PM(string id,string name,int age,Gender Gender,int yearOfExpeerience) {            this.ID = id;            this.Name = name;            this.Age = age;            this.Gender = Gender;            this.YearOfExpeerience = yearOfExpeerience;        }         }}
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace 深入.NET平臺_第四章{    class PRogram    {        static void Main(string[] args)        {            SE se = new SE("1","蘇蘇",25,Gender.女,100);         // Console.WriteLine(se);          Console.WriteLine("大家好,我是"+se.Name+",我今年"+se.Age+"歲,性別:"+se.Gender+"工號是:"+se.ID+"  我的人氣是:"+se.Popularity);            PM pm = new PM("520","琳琳",18,Gender.女,10000);            Console.WriteLine("大家好,我是" + pm.Name + ",我今年" + pm.Age + "歲,性別:" + pm.Gender + "工號是:" + pm.ID + "  我的人氣是:" + pm.YearOfExpeerience);          //Console.WriteLine(pm);            Console.ReadLine();        }    }} 
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace 深入.NET平臺_第四章{   public  class SE    {        public string ID{ get; set; }        public string Name{ get; set; }        public int Age { get; set; }        public Gender Gender { get; set; }        public int Popularity { get; set; }        public SE(string id,string name,int age,Gender Gender,int popularity) {            this.ID = id;            this.Name = name;            this.Age = age;            this.Gender = Gender;            this.Popularity = popularity;        }    }}
上一篇:UML九種圖

下一篇:神奇的static

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 瓦房店市| 武川县| 略阳县| 绥棱县| 安平县| 阿拉善左旗| 长春市| 平山县| 通化市| 桃园县| 小金县| 鹿邑县| 九龙坡区| 安乡县| 金湖县| 德格县| 磐安县| 迁安市| 常州市| 镇雄县| 兴安盟| 湖口县| 乐至县| 兴仁县| 新余市| 土默特左旗| 大宁县| 平潭县| 临沭县| 长乐市| 迁安市| 安丘市| 阿拉善右旗| 陈巴尔虎旗| 台南市| 大田县| 太仓市| 克什克腾旗| 太仆寺旗| 佛坪县| 宁陕县|