重写:子类方法覆盖父类方法,要求方法名和参数都相同。
重载:同一个类中的两个或两个以上的方法名相同,但是参数不同,方法体也不同。
多态动态识别
对象是不是aClass或其子类的成员?
if([audi isKIndOfClass:[Car class]]){
NSlog(@“audi is a kind of Car");
}
对象是不是aClass成员?
if([ca...
分类:
其他好文 时间:
2015-04-22 18:40:14
阅读次数:
638
DescriptionYou have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on CDs. You need to have it on tapes so ...
分类:
其他好文 时间:
2015-04-21 22:30:40
阅读次数:
193
/* 类名:Car属性:轮胎个数、时速(速度)行为:跑*/// 因为使用了NSObject#import // 完整地写一个函数:函数的声明和定义(实现)// 完整地写一个类:类的声明和实现// 1.类的声明 // 声明对象的属性、行为// : NSObject 目的是:让Car这个类具备创建对象的...
分类:
其他好文 时间:
2015-04-21 20:09:15
阅读次数:
106
Premiership.Coach.2010-ALiAS\PrimaSoft.Calendar.Organizer.Deluxe.v3.41-Lz0\PrimaSoft.Camp.Organizer.v3.41-Lz0\PrimaSoft.Car.Organizer.Deluxe.v3.41-Lz0\#########################################联系电话Phone:13978244459QQ:5269150QQ:5269150QQ:5269150Email:fffs..
分类:
其他好文 时间:
2015-04-21 14:47:37
阅读次数:
407
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[...
分类:
其他好文 时间:
2015-04-21 00:13:37
阅读次数:
266
OC中定义类 1 // 设计一个车类 2 @implementation Car : NSObject 3 // 这个大括号里面写所有的属性 4 { 5 @public 6 int wheels ;//轮子个数 7 double speed;//时速 8 9 }10...
分类:
移动开发 时间:
2015-04-21 00:11:36
阅读次数:
177
#lang racket;guo lv qi(define (filter predicate sequence) (cond ((null? sequence) '()) ((predicate (car sequence)) (cons (car sequence) ...
分类:
其他好文 时间:
2015-04-20 22:38:28
阅读次数:
169
The on-board computer on Polycarp's car measured that the car speed at the beginning of some section of the path equals v1 meters
per second, and in the end it is v2 meters
per second. We know tha...
分类:
其他好文 时间:
2015-04-18 20:38:35
阅读次数:
164
akurl http://developer.baidu.com/map/index.php?title=car后台csusing System;using System.Collections.Generic;using System.IO;using System.Linq;using Syst...
分类:
其他好文 时间:
2015-04-18 14:30:12
阅读次数:
135
标题:Gas Station通过率:25.7%难度:中等There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimite...
分类:
其他好文 时间:
2015-04-15 22:46:35
阅读次数:
146