CZFood *food = [[CZFood alloc] init];
CZFood *food1 = [[CZFood alloc] init];
CZFood *food2 = [[CZFood alloc] init];
[food setName:@"青椒"];
[food setPrice:@1];
[food setInfo:@"每百克辣椒维生素C含量高达198毫克,居蔬菜之首位。"];
[food1 setName:@"胡萝卜"];
[food1 setPrice:@10.5f];
[food1 setInfo:@"是一种营养丰富、老幼皆宜的好菜蔬,誉称“小人参”。"];
[food2 setName:@"香菇"];
[food2 setPrice:@15.5f];
[food2 setInfo:@"1. 提高机体免疫功能 2. 延缓衰老 3. 防癌抗癌"]; |