What's the difference between override and hidden in java? -


i searched lot. difference between them override instance method , hidden static method. , hidden in fact redefinition of method. still don't it.if redefinition means static method of parent still exists in subclass, can't see it? or why call hidden not other words? if exists, can't find way call method again. honest function level can't find why different. can 1 explain deeper level such memory?

static members(methods , variables) not present in sub class(child class) object inherit them they'll present single copy in memory.

static members can accessed class name of both super class , sub class not physically present in object of these classes.

where when inherit non-static members, sub class object in memory contain both inherited methods methods of own. when try write similar method here, super class method overridden. on other hand static methods not participate in inheritance, similar method write present in super class, new method run every-time asked for. parent class method hidden not overridden!


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -