Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 07_Object Oriented Programming/00_Objects/05_Static/02_.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
We don't need to create a new object to access "static" members of a class. We call the class name and use "dot notation" to specify the member we want to access. Static members are attached to a class rather than an object or an instance of the class.
We don't need to create a new object to access "static" members of a class. We call the class name and use "dot notation" to specify the member we want to access. Static members are attached to a class rather than an object or an instance of the class. This means that static methods and objects of the class can be accessed without having to create an instance of the class.

As a programmer, it is important to note that since there is only one version of the "static" members, when the variable's value is changed, the value of that variable is changed for every object in the class.

Expand Down