+ 1

Object question in java instance var vs instance of class.

when you declare an instance variable of type does this technically create object variables? so if i create a instance of class and initialize with a instance variable and give it a value am i creating a instance of class object? sorry if it sounds confusing i juat want to know how a instance of class treats a instance variable and if there both objects of class.

13th Sep 2017, 10:14 AM
D_Stark
D_Stark - avatar
2 Answers
+ 1
sounds good to me thanks james.
13th Sep 2017, 10:37 AM
D_Stark
D_Stark - avatar
0
im just using var short for "variable" ill change it
13th Sep 2017, 10:28 AM
D_Stark
D_Stark - avatar