码迷,mamicode.com
首页 >  
搜索关键字:@age    ( 7165个结果
[Objective-c 基础 - 2.6] @property和@synthesize
Xcode编译器的特性,自动生成getter和setterA.@property自动生成某个成员变量的getter和setter的声明变量的命名要求:以下划线开头 1 2 Student.h 3 @interface Student : NSObject 4 { 5 int _age; ...
分类:其他好文   时间:2014-11-24 20:26:30    阅读次数:227
POJ 1511 Invitation Cards 图论题解
Description In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique...
分类:其他好文   时间:2014-11-24 19:15:54    阅读次数:205
java 不同list 添加元素
public class A extends AB{ String name; int age; public A (String name,int age){ super(name, age); }}public class B extends AB{ String name; int age;....
分类:编程语言   时间:2014-11-24 16:58:14    阅读次数:232
C++中拷贝构造函数
Dog.h文件 #include #include using namespace std; #ifndef DOG_H #define DOG_H class Dog { private: string name; int age; static int count; public: void bark() { cout << Dog::name << " age:" << ...
分类:编程语言   时间:2014-11-24 11:55:18    阅读次数:137
自动属性
2.0的时候我们定义属性要这么定义privateint_age;publicintAge{get{return_age;}set{_age=value;}}到3.0的时候新加了自动属性可以这么定义了publicintAge{get;set;}publicintAge{get;privateset;}最终生成的il代码都是一样的,上面的事情编译器帮做了。CLR说,自动实现的属性(..
分类:其他好文   时间:2014-11-22 23:21:21    阅读次数:388
[Swift]Day06:函数
函数参数外部变量名一般情况下你可以不指定外部变量名,直接调用函数:func helloWithName(name: String, age: Int, location: String) { println("Hello \(name). I live in \(location) too. When is your \(age + 1)th birthday?") } helloWit...
分类:编程语言   时间:2014-11-22 21:40:26    阅读次数:300
Javascript基础系列之(二)变量
javascript 中变量通过var关键字(variable)来声明的。var school = "beijingyizhong"也可以通过var 关键字给变量多个值。var school = "beijingyizhong" , diqu = "beijing" , age = 100; 此外,...
分类:编程语言   时间:2014-11-21 16:05:46    阅读次数:203
Javascript基础系列之(一)JavaScript语法
javascript的语法1.区分大小写javascript中,变量、函数、运算符都区分大小写。2.弱类型变量定义变量只用 "var"关键字var age = 25;var myscholl = "sanxiao";var mal = true;3.每行结尾的分号可有可无。4.括号用于代码块。代码示...
分类:编程语言   时间:2014-11-21 14:16:35    阅读次数:183
EL表达式
EL表达式可以出现在常规的文本或者JSP标签属性中例如: name:${ expression1} age:${ expression2}、JSP脚本声明语句等地方1、 EL表达式的语法EL表达式是以”${”开头,以”}”结束,中间为合法的表达式,具体的语法格式为:${ expression }ex...
分类:其他好文   时间:2014-11-21 09:08:52    阅读次数:257
C#中的虚方法和抽象方法(Thirteenth Day)
今天在云和学院学了很多,我这次只能先总结一下C#中的虚方法和抽象的运用。理论:?用virtual修饰的方法叫做虚方法?虚方法可以在子类中通过override关键字来重写?常见的虚方法:ToString() Equals实操:定义一个People的父类,包括Name,Gender,Age,和一个Pe....
分类:Windows程序   时间:2014-11-20 23:12:37    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!