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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -