File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Inheriting variable and static functions" Watch "Inheriting variable and static functions" New topic

Inheriting variable and static functions

Kanishk Sinha

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: 438

also QuoteYourSources

SCJP 6 [86%] June 30th, 2010
OCPWCD [84%] March 26th, 2013
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

Joined: Jun 19, 2010
Posts: 10
Thanks a lot friends for your suggestions!
Consider Paul's rocket mass heater.
subject: Inheriting variable and static functions
Similar Threads
Inner classes & Static blocks
inner class/inheritance
Polymorphism on data members
Final variable
Polymorphism on data members