English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

Properties: passive part of a class object, and usually it is good idea to be encapsulated to another part.

The other part is Methods: active part; interface to the properties, a well-designed class methods are the only visible part of a class and methods provide access to the contents of properties..

2006-09-14 15:50:55 · answer #1 · answered by Andy T 7 · 0 0

Class State. This is where you define what a class knows. In other words, where you declare (and perhaps initialize) its fields.

Class Behavior. The is where you define what a class can do. In other words, where you declare your methods and write their body of functionality.

If you'd like a third...

Class Name. This is where you declare the class itself, including its name, up to 1 class it extends (inherits), and 0 or more interfaces it will implement.

These three parts are the standard parts of the UML description of a class.

2006-09-15 01:30:12 · answer #2 · answered by Dan C 2 · 0 0

fedest.com, questions and answers