- 博客(4)
- 收藏
- 关注
原创 继承与base
继承用法允许类(被称为‘派生类’)继承其他类(‘基类’)中的成员继承过来的成员可以在派生类中被重用,扩展与修改在派生类中需要被修改的成员需要在基类中以‘virtual’修饰,在派生类中需在被修改的成员处加上‘override’派生类可以继续被其他派生类继承写法 public class Bird : Animal { //派生类为Bird,基类为Animal } base
2015-08-14 21:04:29
422
原创 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
299
原创 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
194
原创 python的list 和 tuple
基本是与php的数组相同 list list的内容可变(list内的元素可变) tuple tuple的内容不可变(tuple内的元素不可变,不过元素其本身的内容可以改变) 需在定义的时候就确定tuple内元素的
2015-02-04 10:21:18
188
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人