- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Person *p =[[Person alloc] init];
FengShu *f1 =[[FengShu alloc] initWithA:4 B:6];
[f1 reduce];
[f1 print];
FengShu *f2 =[[FengShu alloc] initWithA:3 B:6];
[f2 add:f1];
[f2 print];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
-(void)dealloc
{
[_name release];_name=nil//euqals to self.name=nil
[_address release];
[super dealloc];