Creating a method returning a boolean taking an object as argument
Can anyone help me. i want to compare if two cars are faster by a method
isFaster(Car otherCar). can someone help me understand how the car object
is compared with the otherCar object which is an argument on the isFaster
method. How can i go about creating the body of the method.
No comments:
Post a Comment