list of dots

User Manual    [Previous]   [Next]   

Namespace Directives

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


namespace school.admin;

class Faculty{}
class Student{}

namespace elevator.structure;

class Building
  1 -- * Classroom;

class Classroom{}


Load the above code into UmpleOnline



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