Answer to Question contract-1

Yes. The contract says just what the method returns and how the parameters affect what it returns.