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

Veröffentlicht am: 15 Januar 2016
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video Learn Java Programming - Object .getClass() and Class Common Methods Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Ross 15 Januar 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7,679 Mal angesehen und es wurde von 64 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!