YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!

2015-11-24-objective-c-----OC_NO.作业

//
// main.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

import "Car_1.h"

import "Phone_2.h"

import "Cup_3.h"

import "computer_4.h"

import "air conditioning_5.h"

import "computer keyboard_6.h"

import "mouse_7.h"

import "LCD_8.h"

import "USB_9.h"

import "monitor unit_10.h"

import "Class_2_1.h"

import "Teacher_2_2.h"

import "Student_2_3.h"

int main(int argc, const char * argv[]) {
/*

定义10个类: 1、声明:实例变量、方法。实现:初始化方法、自定义方法、自我
介绍方法。(方法实现时,以NSLog输出即可)
2、在main.m中分别创建10个类的对象。 3、给对象的实例变量进行赋值、取值操作,执行方法。

*/

if 0

Car_1 *a = [[Car_1 alloc] init];
[a setAndGet1];
Phone_2 *b = [[Phone_2 alloc] init];
[b steAndGet2];
Cup_3 *c = [[Cup_3 alloc] init];
[c setAndGet3];
computer_4 *d = [[computer_4 alloc] init];
[d setAndGet4];
air_conditioning_5 *e = [[air_conditioning_5 alloc] init];
[e setandget_5];
computer_keyboard_6 *f = [[computer_keyboard_6 alloc] init];
[f setandget6];
mouse_7 *g = [[mouse_7 alloc] init];
[g setandget7];
LCD_8 *h = [[LCD_8 alloc] init];
[h setandget8];
USB_9 *i = [[USB_9 alloc] init];
[i setandget9];
monitor_unit_10 *j = [[monitor_unit_10 alloc] init];
[j setandget10];

endif

/*
完成蓝鸥班级开班仪式流程:
1.早9:00开班仪式开始。(NSLog(@“开班仪式正式开始”))
2.Marry老师做自我介绍。
3.三名学生做自我介绍。
要求 :
1.定义一个班级类。
实例变量:所属培训机构名称,班级名,班级人数,授课老师名字,开班日期。
方法:设置学校名字:蓝鸥、集体活动,开班仪式。
2.定义一个老师类。
实例变量:名字、性别、年龄、正在教的课程、正在授课班级。
方法: 讲课、布置作业、验收作业、解决问题、自我介绍。
3.定义一个学生类。
实例变量:名字、性别、年龄、学号、班级名、任课老师、正在学习的课程。
方法:学习、做作业、提出问题、回答问题、自我介绍
注:方法以NSLog输出为主。
*/
Class_2_1 *k = [[Class_2_1 alloc] init];
[k a];
[k b];
[k c];
Teacher_2_2 *l = [[Teacher_2_2 alloc] init];
[l b5];
Student_2_3 *n = [[Student_2_3 alloc] init];
[n c5];
return 0;

}



//
// Student_2_3.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Student_2_3 : NSObject
{

NSString *_Student_2_3Name;
NSString *_Student_2_3Sxe;
NSString *_Student_2_3Age;
NSString *_Student_2_3XueHao;
NSString *_Student_2_3Class;
NSString *_Student_2_3Teacher;
NSString *_Student_2_3Course;

}

@end


//
// Student_2_3.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "Student_2_3.h"

@implementation Student_2_3

@end



//
// Teacher_2_2.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Teacher_2_2 : NSObject
{

NSString *_Teacher_2_2Name;
NSString *_Teacher_2_2Sex;
NSString *_Teacher_2_2Age;
NSString *_Teacher_2_2Course;
NSString *_Teacher_2_2Class;

}


//
// Teacher_2_2.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "Teacher_2_2.h"

@implementation Teacher_2_2

@end



//
// Class_2_1.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Class_2_1 : NSObject
{

NSString *_Class_2_1Training_institutions;
NSString *_Class_2_1Class_name;
NSString *_Class_2_1Number;
NSString *_Class_2_1Teacher_name;
NSString *_Class_2_1Date;

}

@end


//
// Class_2_1.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "Class_2_1.h"

@implementation Class_2_1

@end



//
// monitor unit_10.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface monitor_unit_10 : NSObject
{

NSString *_monitor_unit_10Name;
NSString *_monitor_unit_10Size;
NSString *_monitor_unit_10Colour;
NSString *_monitor_unit_10Model;
NSString *_monitor_unit_10Brand_Name;

}

@end


//
// monitor unit_10.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "monitor unit_10.h"

@implementation monitor_unit_10

@end



//
// USB_9.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface USB_9 : NSObject
{

NSString *_USB_9Name;
NSString *_USB_9Size;
NSString *_USB_9Colour;
NSString *_USB_9Model;
NSString *_USB_9Brand_Name;

}

@end


//
// USB_9.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "USB_9.h"

@implementation USB_9

@end



//
// LCD_8.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface LCD_8 : NSObject
{

NSString *_LCD_8Name;
NSString *_LCD_8Size;
NSString *_LCD_8Colour;
NSString *_LCD_8Model;
NSString *_LCD_8Brand_Name;

}

@end


//
// LCD_8.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "LCD_8.h"

@implementation LCD_8

@end



//
// mouse_7.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface mouse_7 : NSObject
{

NSString *_mouse_7Name;
NSString *_mouse_7Size;
NSString *_mouse_7colour;
NSString *_mouse_7model;
NSString *_mouse_7Brand_Name;

}

@end


//
// mouse_7.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "mouse_7.h"

@implementation mouse_7

@end



//
// computer keyboard_6.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface computer_keyboard_6 : NSObject
{

NSString *_computer_keyboard_6Name;
NSString *_computer_keyboard_6Size;
NSString *_computer_keyboard_6colour;
NSString *_computer_keyboard_6Model;
NSString *_computer_keyboard_6Brand_Name;

}

@end


//
// computer keyboard_6.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "computer keyboard_6.h"

@implementation computer_keyboard_6

@end



//
// air conditioning_5.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface air_conditioning_5 : NSObject
{

NSString *_air_conditioning_5Name;
NSString *_air_conditioning_5Size;
NSString *_air_conditioning_5Colour;
NSString *_air_conditioning_5Model;
NSString *_air_conditioning_5Brand_Name;

}

@end


//
// air conditioning_5.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "air conditioning_5.h"

@implementation air_conditioning_5

@end



//
// computer_4.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface computer_4 : NSObject
{

NSString *_computer_4Name;
NSString *_computer_4Size;
NSString *_computer_4Colour;
NSString *_computer_4Model;
NSString *_computer_4Brand_Name;

}

@end


//
// computer_4.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "computer_4.h"

@implementation computer_4

@end



//
// Cup_3.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Cup_3 : NSObject
{

NSString *_Cup_3Name;
NSString *_Cup_3Colour;
NSString *_Cup_3Brand_Name;
NSString *_Cup_3Size;
NSString *_Cup_3Model;

}

@end


//
// Cup_3.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "Cup_3.h"

@implementation Cup_3

@end



//
// Phone_2.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Phone_2 : NSObject
{

NSString *_Phone_2Name;
NSString *_Phone_2Size;
NSString *_Phone_2Colour;
NSString *_Phone_2Model;
NSString *_Phone_2Brand_Name;

}

@end


//
// Phone_2.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "Phone_2.h"

@implementation Phone_2

@end



//
// Car_1.h
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Car_1 : NSObject
{

NSString *_Car_1Name;
NSString *_Car_1Colour;
NSString *_Car_1Size;
NSString *_Car_1Brand_Name;
NSString *_Car_1Model;

}

@end


//
// Car_1.m
// OC_NO.1
//
// Created by YIem on 15/11/24.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "Car_1.h"

@implementation Car_1

@end

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »