H (Hybrid) Language
∟Encapsulation - Private Members
This chapter provides notes on encapsulation in H language.
$public Modifier on Class Members
$private Modifier on Class Members
$public Modifier on Instance Members
$private Modifier on Instance Members
"protected" Modifier Not Supported
Takeaways:
- By default, all class members (variables and fucntions) are public.
But you can use $public modifier to make them more readable.
- The $private modifier can be used on class members to stop everyone
accessing them from outside the class definition body.
- By default, all instance members (properties and methods) are public.
But you can use $public modifier to make them more readable.
- The $private modifier can be used on instance members to stop everyone
accessing them from outside the instance definition body.
Table of Contents
About This Book
Introduction of H Language
Syntax
Data Types
Variables
Expressions
Statements
"boolean" Data Type
"integer" Data Type
"string" Data Type
"real" Data Type
"array" Data Type
Source Code Packages
Classes and Objects
Object Oriented Programming
Inheritance - Object Attachments
►Encapsulation - Private Members
References
Full Version in PDF/ePUB