- Create a new Xcode command-line project. Name the project Assignment-18-1.
- Create a new class in the project named Car.
- Type the following code into the
Car.h file inside the
- Type this code into the
Car.m file inside the
Car.h into the main.m file.
- In the main.m file create two instances of the Car class. Fill the instances with data, use an older year and a current year.
- Output each instance with an
NSLog statement like this.