C#
文章平均质量分 62
graysoya
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C# class and struct
"A class or struct definition is like a blueprint that specifies what the type can do. An object is basically a block of memory that has been allocated and configured according to the blueprint. A原创 2015-08-12 14:05:03 · 258 阅读 · 0 评论 -
class中的field,property,method,constructor
creating class public class Person { //empty class is created //field,property,method```to be added here } setting field, property, constructor and method public class Person { publi原创 2015-08-12 14:23:29 · 653 阅读 · 0 评论 -
继承与base
继承用法允许类(被称为‘派生类’)继承其他类(‘基类’)中的成员继承过来的成员可以在派生类中被重用,扩展与修改在派生类中需要被修改的成员需要在基类中以‘virtual’修饰,在派生类中需在被修改的成员处加上‘override’派生类可以继续被其他派生类继承写法 public class Bird : Animal { //派生类为Bird,基类为Animal } base原创 2015-08-14 21:04:29 · 747 阅读 · 0 评论
分享