Java: nested class function? -


ob instance of object.

if call function getname returns class type

ob.getclass().getname()

my doubt is, how come getclass , getname 2 functions, how nested?

no, aren't. getclass return class object. class object contains method called getname. code posted similar to:

 class cls = ob.getclass();  string name = cls.getname(); 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -