Design and implement a class called Car that contains instance data that represents the make, model, and year of the car

LANGUAGE: Java

CHALLENGE:

Design and implement a class called Car that contains instance data that represents the make, model, and year of the car (as a String, String and int value respectively).

Define the Car constructor to initialize these values (in that order).
Include getter and setter methods for all instance data, and a toString method that returns a one-line description of the car of the form make-model (year)

for example:
Ford-Thunderbird (1955)

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,