Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Suma {
- int a;
- int b;
- Suma(int a, int b){
- this.a = a;
- this.b = b;
- }
- int Sumuj() {
- return a*b;
- }
- }
- public class Wynik {
- public static void main(String[] args) {
- Suma p1 = new Suma(6,5);
- System.out.println(p1.Sumuj());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement