Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

final method meaning


public class Counter {
    private int counter = 0;

    public final int count() {
        return counter++;
    }

    public final int reset() {
        return (counter = 0);
    }
}

Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #final #method #meaning
ADD COMMENT
Topic
Name
5+1 =