Work in HR? Unlock Free Profile Software Engineer Interview Question

I interviewed in Seattle, WA and was asked:
"Design a Parking Garage"
Add Tags [?]

Part of a Software Engineer Interview Review - one of 4,667 Interview Reviews

Answers & Comments

of 0

Wasn't honestly expecting an OO Design question this early in the interview process, but it is what it is.

- Interview Candidate on May 14, 2014
of 1

Just a small part of an example:

@interface Garage : NSObject

@property (strong, nonatomic, readonly) NSArray *employees;
@property (strong, nonatomic, readonly) NSArray *clients;

- (void)addEmployee:(Employee *)employee;
- (void)removeEmployee:(Employee *)employee;
- (void)insertClient:(Client *)client;
- (void)removeClient:(Client *)client;



@interface Employee : Person

@property (atomic, readonly, getter = isFree) free;

- (void)extractVehicle:(Vehicle *)vehicle fromGarage:(Garage *)garage;
- (void)parkVehicle:(Vehicle *)vehicle inGarage:(Garage *)garage;


@interface Client : Person

@proprty (strong, nonatomic, readonly) Vehicle *vehicle;

- (instancetype)initWithName:(NSString *)name surname:(NSString *)surname vehicle:(Vehicle *)vehicle;



@interface Person : NSObject

@property (copy, nonatomic, readonly) NSString *name;
@property (copy, nonatomic, readonly) NSString *surname;


@interface Vehicle : NSObject



- Matteo Gobbi on Jun 15, 2014

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.