Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

static methods cannot be overridden ?  RSS feed

 
Tom McCann
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very confused (so what's new ?). In the SCJP Exam guide it says that static methods cannot be overridden. Yet I have just compiled and run the following test program with the expected results. Am I missing something in my understanding of the statement that "static methods cannot be overridden" ?



produces the output:

I am eating
I am eating hay
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a nice page about this in the JavaRanch FAQ.
 
Tom McCann
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many Thanks.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!