Simple ..
public class LikeThis {
private static int numberOfObjectsCreated = 0;
public LikeThis() {
numberOfObjectsCreated++;
// other constructor business
}
}
public class LikeThis {
private static int numberOfObjectsCreated = 0;
public LikeThis() {
numberOfObjectsCreated++;
// other constructor business
}
}
No comments:
Post a Comment