Advertisement
blackpab

Java PoleA

Feb 27th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. /*  
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package poleprostokata;
  7.  
  8. /**
  9.  *
  10.  * @author student
  11.  */
  12. public class LiczPole {
  13.     private int BokA, BokB;
  14.     private int pole;
  15.    
  16.     public void oblicz() {
  17.         pole = BokA * BokB;
  18.     }
  19.    
  20.     public int wypisz(){
  21.         return pole;
  22.     }
  23.    
  24.    
  25.    
  26.     public LiczPole(int BokA, int BokB) {
  27.         this.BokA = BokA;
  28.         this.BokB = BokB;    
  29.         pole = 0;
  30.     }
  31.    
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement