-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shayne Smith
committed
Jan 22, 2020
1 parent
2f549f9
commit c7aeb83
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
prototypes { | ||
Classes are objects that are used as templates to build more complex objects. They can be distinguished from other objects by their uppercase letter at the start of the object name. Prototypes are created when each class is created. They give daughter objects access to methods in the original class, without copying each objects' methods in memory. This greatly reduces memory needs when millions of objects are instantiated from one class and results in much greater memory efficiency. | ||
} | ||
|
||
constructors { | ||
Constructors, or classes, have much of the same functionality as other objects and are used as templates to create similar objects that share many of the same properties and methods. | ||
} |