package lab07.ex02;

public class ReaderDecorator implements TextInterface{

    private TextInterface txtInter;

    ReaderDecorator(TextInterface txtInter) {
        this.txtInter = txtInter;
    }

    @Override
    public boolean hasNext() {
        return txtInter.hasNext();
    }

    @Override
    public String next() {
        return txtInter.next();
    }
}
