Answers for "getter setter and inheritanse"

0

inheritance setter and getter in java

public class B extends A {
    @Override
    public final int getA() {
        return super.getA();
    }
    @Override
    public final void setA(int value) {
        super.setA(value);
    }
}
Posted by: Guest on May-13-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language