📅  最后修改于: 2022-03-11 14:52:13.449000             🧑  作者: Mango
public class Shape {
private int numberOfVertices;
//with final modifier,
//this method cannot be overridden by subclasses
public final int getNumberOfVertices() {
return numberOfVertices;
}
}