benleggiero
06/15/2018, 1:38 AMinit
?Shawn
06/15/2018, 1:46 AMbenleggiero
06/15/2018, 4:08 AMarekolek
06/15/2018, 9:48 AMNote that code in initializer blocks effectively becomes part of the primary constructor. Delegation to the primary constructor happens as the first statement of a secondary constructor, so the code in all initializer blocks is executed before the secondary constructor body. Even if the class has no primary constructor, the delegation still happens implicitly, and the initializer blocks are still executed
benleggiero
06/16/2018, 8:45 PM