txt: ## class.md
  class
  
  Combined from primary sources listed below.
  
  # [In Object orientation](#___top "go to top of document")[§](#(Object_orientation)_class_class "direct link")
  
  See primary documentation
  [in context](/language/objects#Classes)
  for **Classes**.
  
  Classes are declared using the `class` keyword, typically followed by a name.
  
  ```raku
  class Journey { }
  
  ```
  
  This declaration results in a type object being created and installed in the current package and current lexical scope under the name `Journey`. You can also declare classes lexically:
  
  ```raku
  my class Journey { }
  
  ```
  
  This restricts their visibility to the current lexical scope, which can be useful if the class is an implementation detail nested inside a module or another class.
  
  # [In Classes and objects](#___top "go to top of document")[§](#(Classes_and_objects)_class_class "direct link")
  
  See primary documentation
  [in context](/language/classtut#Class)
  for **Class**.
  
  Raku, like many other languages, uses the `class` keyword to define a class. The block that follows may contain arbitrary code, just as with any other block, but classes commonly contain state and behavior declarations. The example code includes attributes (state), introduced through the `has` keyword, and behaviors, introduced through the `method` keyword.
  