Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inheritance #setter #getter #java
ADD COMMENT
Topic
Name
4+5 =