raw download clone
views 23
size 592 b
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
package Aplikacja;
 * @author hp
import java.util.*;

public class Akumulator extends Korpus{
    public Akumulator(int sloty){
        Ogniwo o1 = new Ogniwo();
        this.slot = sloty;
    public String coZawiera(Ogniwo o1){
        return o1.nazwa;        
    public int ileEnergii(Ogniwo o1){
        return o1.pojemnosc*slot;
close fullscreen
Login or Register to edit or fork this paste. It's free.