第四章 上机1
来源:互联网 发布:php中添加按钮 编辑:程序博客网 时间:2024/05/21 06:57
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; } }}
0 0
- 第四章上机1
- 第四章 上机1
- 第四章 数据查询1(上机)
- C# 第四章上机练习1
- 第四章 上机4
- 第四章 上机4
- 第四章上机
- 第四章上机练习5
- 数据结构第四章上机实验
- HTML第四章 上机5
- HTML 第四章上机4
- 第四章上机3-5
- S2 第一本书 第四章 上机练习1-4
- 数值分析第四章上机实习题
- 第四章 数据查询2 (上机)
- HTML第四章上机练习4
- S2 优化数据库 第四章上机
- //Dijkstra算法大连理工大学数据结构上机第四章
- K-means聚类算法
- AngularJS自定义指令
- iOS面试题经典语录(持续收集中...)
- 函数声明与函数表达式以及立即执行函数的讨论
- C++-string用法
- 第四章 上机1
- dotnet new 命令使用模板生成Angular应用
- ES6 set
- [Leetcode] #257 Binary Tree Paths
- ClassNotFoundException: org.springframework.context.event.GenericApplication
- android studio引用高德地图api后地图显示白屏
- 神奇的static
- Jsp访问JavaBean
- sql的优化