We can define a local class in any kind of block (e.g., methods):. Just like an inner class, we can access all members of the enclosing class.
確定! 回上一頁