0
Properties
Hey does anyone know how to add properties to a method in java?
2 odpowiedzi
+ 1
public int var = 2;
- Declare the encapsulation type
- Declare the data type
- Declare the variable name
- Assign it a value eg =2. (this step is optional).
0
Oh ok...I definitely have to look into this some more