Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 a quick question on overriding methods
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Bo0sT




PostPosted: Wed Apr 22, 2009 3:58 am   Post subject: a quick question on overriding methods

So if a method is not abstract or final, it can be overriden at any time, but doesn't have to be. If it is final it cannot be overriden and if it's abstract it must be overriden.

Is this correct?
Sponsor
Sponsor
Sponsor
sponsor
OneOffDriveByPoster




PostPosted: Wed Apr 22, 2009 8:22 am   Post subject: Re: a quick question on overriding methods

Bo0sT @ Wed Apr 22, 2009 3:58 am wrote:
So if a method is not abstract or final, it can be overriden at any time.
Not if you have a class (i.e., static) method.
Bo0sT




PostPosted: Wed Apr 22, 2009 1:25 pm   Post subject: Re: a quick question on overriding methods

oh ok, that makes sence, thanks.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: