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

Publicado em: 15 Janeiro 2016
no canal de: 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.


Nesta página do site você pode assistir ao vídeo on-line Learn Java Programming - Object .getClass() and Class Common Methods Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daniel Ross 15 Janeiro 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 7,679 vezes e gostou 64 espectadores. Boa visualização!