How can you initialise a class member within a class in java
Answers
Answered by
1
Answer:
To initialise a class member variable put the initialisation code in a static initialisation block as following section shows . To initialise an instance member variable put the initialisation code in a custructor.
Similar questions