C#扩充类
来源:互联网 发布:哪个软件可以看黄子片 编辑:程序博客网 时间:2024/05/22 23:58
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 课本习题{ public class Animal { public Animal() { Console.WriteLine("基类构造函数:Hello,Animal"); } public void Eat() { Console .WriteLine("扩充类方法:Eating"); } } public class Cat:Animal { public Cat() { Console.WriteLine("扩充类构造函数:Hello,Cat"); } public void Walk() { Console .WriteLine("扩充类方法:Walking"); } } class Program { static void Main(string[] args) { Cat cat=new Cat (); cat.Eat(); cat.Walk(); Console .ReadLine(); } }}
0 0
- C#扩充类
- C#3.0 语言基础扩充
- 扩充类chain
- 扩充string类
- 扩充String类
- 扩充String类
- 扩充String类
- unity PlayerPrefs类扩充
- 扩充
- C#功能扩充: 让Java加入吧!
- 【项目5-扩充String类】
- 【项目4-扩充String类】
- [读书笔记] 欧几里得算法与该算法的扩充 C#
- 扩充String类(逐渐修改版)
- 第八周项目4-扩充String类
- 第八周项目4扩充string类
- with引起的类的扩充
- [MSDN]C# 3.0 锐利体验系列课程 之一 语言基础扩充
- 顺序栈的基本操作
- OC语法--KVC概念及用法
- C语言缓冲区&内存分配的理解
- hdu 4044 GeoDefense
- ZOJ 2112 Dynamic Rankings BIT套ChairTree
- C#扩充类
- Hibernate 参数设置一览表
- 链栈的基本操作
- Jquery 跨域访问
- iGrimace iOS应用闪退或图标消失的解决办法
- Web 移动开发规范概述
- 页面使用$.getJSON只获取一次数据,导致多个请求返回的都是第一个结果
- 2015年第七周图形用户界面(GUI)应用开发
- 学习shell脚本之前的基础知识