permaculture playing cards*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Inheriting variable and static functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Inheriting variable and static functions" Watch "Inheriting variable and static functions" New topic
Author

Inheriting variable and static functions

Kanishk Sinha
Greenhorn

Joined: Jun 19, 2010
Posts: 10

----------------------------------------------------------------------------------------------------------------------------------
Regarding the above code my questions are :
1) How are variables inherited exactly, are they duplicated in the Derieved class?
2) How do rules for inheriting static-functions and non-static function differ with respect to overriding?
Sahil Kapoor
Ranch Hand

Joined: Sep 12, 2009
Posts: 316
Please do use code tags !!!


SCJP 6.0 96%

(Connecting the Dots ....)
Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 440

also QuoteYourSources

SCJP 6 [86%] June 30th, 2010
OCPWCD [84%] March 26th, 2012
OCEJPAD [83%] September 6th, 2014
If you find any post useful, click the "plus one" sign on the right
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Have a look on here


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Kanishk Sinha
Greenhorn

Joined: Jun 19, 2010
Posts: 10
Thanks a lot friends for your suggestions!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inheriting variable and static functions