Computer Science, asked by stutibhatia, 5 months ago

How can you initialise a class member within a class in java​

Answers

Answered by shanthikumari069
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