/cl-mobile-objc-me

Objective-C Me

Primary LanguageObjective-CMIT LicenseMIT

Objective Me

Create a Person subclass of NSObject that contains the following properties:

  • First Name
  • Last Name
  • Age (ex. 20)
  • Academic Status (ex. 'Freshman' or 'Sophomore')

Your person object should have the following methods:

-(NSString *) description: Should return a string in the following format:

My name is (First Name) (Last Name), I am (Age) years old and I am a (Academic Status) at West Virginia University.

In your main.m file, import your include your Person.h class file complete the following:

  1. Allocate and initialize a new person object
  2. Set the properties using your information
  3. Use your NSLog statement to output your description string