Олимпиадный тренинг

Задача . 12


Задача

Темы:
Here are the private instance variables for a Frog object:

public class Frog
{
  private string species;
  private int age;
  private double weight;
  private Position position; //position (x,y) in pond
  private boolean amAlive;
...
Which of the following methods in the Frog class is the best candidate for being a static method?

(A) swim //frog swims to new position in pond
(B) getPondTemperature //returns temperature of pond
(C) eat //frog eats and gains weight
(D) getWeight //returns weight of frog
(E) die //frog dies with some probability based
//on frog’s age and pond temperature

time 1000 ms
memory 32 Mb
Правила оформления программ и список ошибок при автоматической проверке задач

Статистика успешных решений по компиляторам
Комментарий учителя