I'm fairly a beginner myself. But if I'm not wrong , init is the default constructor. So if you define a there ,your new object will have a pre- initialised in it. Where as in the second condition a is a member variable of the class.
Обсуждают сегодня