lion/docs/guides/principles/definitions-and-terms.md
Pavlik Kiselev 11bbc5fff5
feat: migrated the navigation metadata from inline MD title decorations to frontmatter
* feat: migrated the navigation metadata from inline MD title decorations to frontmatter

* fix: fixed frontmatter metadate for api-table MDs

* fix: fixed frontmatter eslint issue
2025-03-19 10:08:22 +01:00

1.2 KiB

parts title eleventyNavigation
Principles
Definitions and Terms
Principles: Definitions and Terms
key order parent title
Principles: Definitions and Terms 20 Principles Definitions and Terms

Principles: Definitions and Terms

Below you will find a list of definitions and terms that will be used throughout our code documentation.

Public

Methods and properties are public when they are not prefixed by an underscore. They can be used by Application Developers.

class SoccerPlayer {
  kickBall() {
    // Soccer player can kick a ball
  }
}

Protected

Methods and properties are protected when they contain one underscore or are explicitly marked as protected in the code. They can be used by Subclassers.

class SoccerPlayer {
  _catchBall() {
    // Soccer player usually does not need to catch a ball (with their hands)
  }
}

Private

Methods and properties are private when they contain two underscores or are explicitly marked as private in the code. They can be only used within the class where they are defined (developers of Lion components).

class SoccerPlayer {
  __score() {
    // internally save how many goals have been made
  }
}