iOS Development

Course No. 10-152-139

Assignment 18-1

  • 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 @interface statement.
  • Type this code into the Car.m file inside the @implementation statement.
  • Import 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.