Skip to content

Commit be981d9

Browse files
committed
feat: An instance
variable is a variable that belongs to an object (instance) of a class. It is declared inside a class but outside any method, constructor, or Signed-off-by: Somesh diwan <[email protected]>
1 parent a64b5e6 commit be981d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Section10Methods/LocalandGlobalVariables/src/InstanceVariablesVsGlobalVariables.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Instance variables store data that belongs to an object.
77
They are declared inside a class but outside methods.
88
Each object has its own copy of instance variables.
99
They have default values if not initialized.
10-
They can be accessed using getters and setters if private.
10+
They can be accessed using getters and setters if private.

0 commit comments

Comments
 (0)