algo/object-c/05_array/MyArray.h

20 lines
465 B
Objective-C

//
// MyArray.h
// algo
//
// Created by Wenru Dong on 2018/10/3.
// Copyright © 2018年 Wenru Dong. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MyArray : NSObject
- (instancetype)initWithCapacity:(NSUInteger)capacity;
- (id)objectAtIndexedSubscript:(NSUInteger)index;
- (void)removeObjectAtIndex:(NSUInteger)index;
- (void)insertObject:(id)anObject atIndex:(NSUInteger)index;
- (void)addObject:(id)anObject;
- (void)printAll;
@end