Up until this point, I have discussed two ways that we can execute statements in a class: constructors and methods. This tutorial will introduce you to a third way – the initialization block. There are two types of initialization blocks, an instance initialization block and a static initialization block. This tutorial will discuss only the instance initialization block, I will be discussing the static initialization block after the part 2 tutorial. An instance initialization block is simply a pair of opening and closing braces inside of a class, but not inside of a method or constructor. Statements inside of the block are executed as an instance of the class is created.
На этой странице сайта вы можете посмотреть видео онлайн Learn Java Programming - Instance Initialization Block Part 1 Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Daniel Ross 16 Август 2015, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,175 раз и оно понравилось 29 зрителям. Приятного просмотра!