Tuesday, July 13, 2004

Naming Convention for Classes

The standard naming convention for classes in Java is to write the class name in InitCaps. So a class which denotes the customer sales record should be named CustomerSalesRecord
This format makes the name easily readable. We should be careful to chose a name which clearly describes the purpose of the class. Try to avoid short forms or acronyms unless they are clear enough, or if using the full name makes the class name way too long. What exactly constitutes way too long is an individual choice. I would say over 50 characters is long.

1 comment:

Thuy Bien said...

Mình chưa hiểu ý bạn nói, cậu có thể nói cụ thể thêm được không?

Bên cậu cũng bán can ho Sky Dream Hung Thinh luôn hả, cậu biết ngày nào mở bán không nhỉ.

Bên Tôi đang tham khảo The Goldview Quan 4, EcoLife Tay Ho hoặc chung cư Westbay Ecopark.

bạn có tin gì mới nhất báo cho Tớ biết nữa nha. Cảm ơn!