Learn Java Programming - Object .getClass() and Class Common Methods Tutorial

Опубликовано: 15 Январь 2016
на канале: Daniel Ross
7,679
64

The Object class contains a method named .getClass() that returns an instance of type Class - that's right, there is a class named Class (sure, why not???). All kidding aside, the class Class contains over 60 methods that you can use to determine various things about an instance of an object. Every class and interface inherits this method either directly or indirectly from the Object class so we can invoke it on just about everything.
The .getClass() method takes no parameters and is super easy to invoke, just tack it on to your reference variable and you are good to go.


На этой странице сайта вы можете посмотреть видео онлайн Learn Java Programming - Object .getClass() and Class Common Methods Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Daniel Ross 15 Январь 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 7,679 раз и оно понравилось 64 зрителям. Приятного просмотра!