This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Class Implementation Is the inside view of a class Consists of method (member function) definitions o I.e. code that implements behaviour In C++ o The implementation is put into a .cc or .cpp file o The interface is put into a .h file In Java, the interface and implementation are not separated (uses only a single file) Representing a Class in UML (Unified Modeling Language) General form for the class symbol: Refer to Lecture 9 UML .jpg Attributes follow the form: name : type E.g. lastName : String length : int Operations follow the form: name(arguments) : returnType Each argument follows the form: name : type Arguments are separated by commas E.g. getAge() : int setLength(value : float) : void Visibility can be specified, if desired: o public + o protected # o private-...
View Full Document
- Fall '09