VerseWiki
VerseWiki
  • Table of Contents
  • Import Expressions
  • 01. Common Naming Patterns
  • 02. Names
  • 03. Formatting
  • 04. Functions
  • 05. Failure Checks
  • 06. Encapsulation
  • 07. Events
  • 08. Concurrency
  • 09. Attributes
  • 10. Constructors
  • 11. Class & Specifiers
  • 12. Math
  • 13. Containers
  • 📘Fortnite Digest
  • 📗Unreal Engine Digest
  • 📕Verse Digest
  • EG: Onboarding Guide
  • EG: Verse Programming
  • EG: Language Reference
  • EG: Official API
  • EG: Verse Scripting
  • EG: Dev Community
  • EG: Community Snippets
  • View on Github Wiki
Powered by GitBook
On this page
  • 6.1 Prefer Interfaces to Classes
  • 6.2 Prefer Private Access and Restrict Scope

Was this helpful?

06. Encapsulation

6.1 Prefer Interfaces to Classes

  • Use interfaces instead of classes where reasonable. This helps reduce implementation dependencies and allows users to provide implementations that can be used by the framework.

6.2 Prefer Private Access and Restrict Scope

  • Class members should be 'private' in most cases.

  • Class and module methods should be scoped as restrictively as possible - <internal> or <private> where appropriate.

Previous05. Failure ChecksNext07. Events

Was this helpful?