Advertisement
Morogn93

Wynik

Jun 7th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. class Suma {
  2.    
  3.     int a;
  4.     int b;
  5.  
  6.     Suma(int a, int b){
  7.        
  8.         this.a = a;
  9.         this.b = b;
  10.  
  11.        
  12.     }
  13.  
  14.     int Sumuj() {
  15.  
  16.         return a*b;
  17.     }
  18. }
  19.  
  20. public class Wynik {
  21.     public static void main(String[] args) {
  22.        
  23.         Suma p1 = new Suma(6,5);
  24.         System.out.println(p1.Sumuj());
  25.        
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement