uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

Namespace Directives

Namespaces allow you to group similar entities to promote cohesion, as well as reduce the possibility of name collision.

Example

namespace school.admin;

class Faculty{}
class Student{}

namespace elevator.structure;

class Building
{
  1 -- * Classroom;
}

class Classroom{}

      

Load the above code into UmpleOnline

 

Syntax


// Namespaces divide the code into logical groups. See NamespaceDirectives
namespace- : namespace [namespace] ;