c#类的初使用
来源:互联网 发布:癌症晚期知乎 编辑:程序博客网 时间:2024/04/30 15:54
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Person p1 = new Person(); p1.showperson(); Person p2 = new Person("zangyunji", 20); p2.showperson(); Console.ReadKey(); } } public class Person { public string name; int age; protected string sex; public Person() { } public Person(string s, int a) { name = s; age = a; } public void showperson() { Console.WriteLine("name:{0} age:{1}", name, age); } }}
0 0
- c#类的初使用
- C# 类的使用
- C#类的定义使用
- C# 抽象类的使用
- C#嵌套类的使用
- C#中类的使用
- C# 匿名类的使用
- C# 中Progress 类的使用
- C#中StringBuilder类的使用
- C#中StringBuilder类的使用
- C#中Delegate类的使用
- C#中StringBuilder类的使用
- C#之Graphics类的使用
- C#中StringBuilder类的使用
- C#中Command类的使用
- C#中DataReader类的使用
- C#中StringBuilder类的使用
- C#中StringBuilder类的使用
- nginx服务器反向代理tomcat
- 欢迎使用CSDN-markdown编辑器
- Mybatis-Session生成详细分析
- Redis详解
- TSP问题中,蚁群算法的应用
- c#类的初使用
- jQuery过滤性选择器
- Linux共享对象之编译参数fPIC
- android 之XUitls
- a标签重新打开窗口
- 20160401 第3章 鼠标和键盘(来自《MFC Windows 程序设计(第2版)》)
- 关于c3p0的重连机制
- 数字签名
- 别的不说,我就呵呵,干呵呵!