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

Publicado el: 15 enero 2016
en el 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.


En esta página del sitio puede ver el video en línea Learn Java Programming - Object .getClass() and Class Common Methods Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Daniel Ross 15 enero 2016, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 7,679 veces y le gustó 64 a los espectadores. Disfruta viendo!