objective-c1 objective-c 객체 사용법 objective-c 객체 사용법 // // main.m // FirstObjectiveC // // Created by MacBookPro on 2018. 7. 9.. // Copyright © 2018년 MacBookPro. All rights reserved. // #import // - 인스턴스 메서드, + 클래스 메서드 (동적 할당 x) //객체 설정 @interface Vehicle : NSObject{ //1.member variable - 맴버 변수 선언 int wheels; int seats; } //2.member method - 맴버 메서드 선언 -(void)setWheels:(int)w; -(void)setSeats:(int)s; -(void)print; @end //3.Vehicl.. 2018. 7. 9. 이전 1 다음