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:
- Allocate and initialize a new person object
- Set the properties using your information
- Use your NSLog statement to output your description string