码迷,mamicode.com
首页 >  
搜索关键字:@age    ( 7165个结果)
Java 学习笔记(2015.7.13~17)
Java学习笔记(2015.7.13~17)Java学习笔记(2015.7.13~17)Javathis关键字表示本类中的属性,调用本类中的方法classPerson{ privateStringname; privateintage; publicPerson(Stringname,intage){ this.name=name;//调用本类中的属性 this.age=age;//同上}//get&set方法:..
分类:编程语言   时间:2015-07-19 22:00:13    阅读次数:239
面向对象的PHP
类的实例(包括继承)name = $name; $this->age = $age; } public function show() { echo $this->name . ' ' . $this->age . '' ; } // 析构函数,对象销毁的...
分类:Web程序   时间:2015-07-19 19:46:07    阅读次数:160
判断对象属性的几种方法
function Person() { this.name = 'Lee'; this.age = 20; this.sayName = function() {console.log(this.name)}; } Person.prototype.height = 180; var p = new Person();判断属性hasOwnProperty(proper...
分类:其他好文   时间:2015-07-19 18:13:03    阅读次数:202
Mysql常用语句与函数(待续)
-- 查询语句select class from stu_info where sid=1000000102;select * from stu_info t where t.age=88; -- t是表的别名,多表查询时比较方便select * from atable a, btable...
分类:数据库   时间:2015-07-19 14:47:57    阅读次数:210
angularjs开发常见问题-2(angularjs内置过滤器)
在angular中内置了几个常用的filter,可以简化我们的操作。过滤器使用 ‘|’ 符号,概念有点类似于linux中的管道。1、filter (过滤)filter可以根据条件过滤数据,例子:{{[{name:'coolcao',age:23},{name:'lily',age:20},{name:'tom',age:22}] | filter:'coolcao'}}结果:[{"name":"co...
分类:Web程序   时间:2015-07-19 13:26:17    阅读次数:117
C++的三种访问权限与三种继承方式
三种访问权限我们知道C++中的类,有三种访问权限(也称作访问控制),它们分别是public、protected、private。要理解它们其实也很容易,看下面了一个例子。 父类:class Person { public: Person(const string& name, int age) : m_name(name), m_age(age) { } void S...
分类:编程语言   时间:2015-07-19 11:54:38    阅读次数:143
SWIFT中将信息保存到plist文件内
在项目中可能我们需要保存一些数据到plist文件中,以下就本人在学习过程中的笔记,不成熟的地方请指出。可能我有一个类叫做Studentimport UIKitclass Student: NSObject { var text:String var age:Bool init(te...
分类:编程语言   时间:2015-07-18 22:36:38    阅读次数:172
js原型对象中属性被覆盖(1)
/** *@author 程无衣 *@description 关于在原型对象中属性被覆盖*/function Person(){}Person.prototype={constructor:Person,age:24}var person1= new Person();person1.age=20;...
分类:Web程序   时间:2015-07-18 19:55:31    阅读次数:106
比赛--年龄排序问题--解题报告
年龄排序题目大意:You are given the ages (in years) of all people of a country with at least 1 year of age. You know thatno individual in that country lives fo...
分类:编程语言   时间:2015-07-18 12:14:53    阅读次数:127
ACM Age Sort排序
DescriptionAge Sort:You are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that coun...
分类:编程语言   时间:2015-07-17 21:00:13    阅读次数:440
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!