class Example {
public static constant;
private static variable;
public static instanceVariable;
public publicVariable; //there is seldom good reason for this
public method1(){
...
}
private method2(){
...
}
}
Ref:
Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
Publisher: Prentice Hall PTR; 1 edition (August 11, 2008)
ISBN-10: 0132350882
ISBN-13: 978-0132350884
No hay comentarios:
Publicar un comentario