Advertisement
jaVer404

level11.lesson08.task01

May 6th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. package com.javarush.test.level11.lesson08.task01;
  2.  
  3. /* Все скрыто
  4. Скрыть все внутренние переменные класса Cat.
  5. */
  6.  
  7. public class Solution
  8. {
  9.     public static void main(String[] args)
  10.     {
  11.     }
  12.  
  13.     public class Cat
  14.     {
  15.         private String name;
  16.         private int age;
  17.         private int weight;
  18.  
  19.         public Cat()
  20.         {
  21.         }
  22.  
  23.         public Cat(String name, int age, int weight)
  24.         {
  25.             this.name = name;
  26.             this.age = age;
  27.             this.weight = weight;
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement