Advertisement
jaVer404

level11.lesson08.task05

May 6th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. package com.javarush.test.level11.lesson08.task05;
  2.  
  3. /* Добавь недостающие переменные
  4. Посмотри внимательно на методы и добавь недостающие переменные.
  5. */
  6.  
  7. public class Solution
  8. {
  9.     public static void main(String[] args)
  10.     {
  11.     }
  12.  
  13.     public class Cat
  14.     {
  15.         String name;
  16.         int age;
  17.         int weight;
  18.         int speed;
  19.  
  20.         public Cat(String name, int age, int weight)
  21.         {
  22.  
  23.         }
  24.  
  25.         public String getName()
  26.         {
  27.             return null;
  28.         }
  29.  
  30.         public int getAge()
  31.         {
  32.             return 0;
  33.         }
  34.  
  35.         public void setWeight(int weight)
  36.         {
  37.  
  38.         }
  39.  
  40.         public void setSpeed(int speed)
  41.         {
  42.  
  43.         }
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement