On May 02, 2006, at 1:32 PM, Mike Woodworth wrote:

My lack of experience in other languages is showing, but whats the advantage of an abstract method? how is that different than an empty method in the superclass? I assume there's some nicety with compiler errors, but that would seen to negate the comment about unimplemented interface methods below.

mike
--
Mike Woodworth
[EMAIL PROTECTED]

A purely abstract method in a super class is one that MUST be overridden by a subclass.

So you cannot create an instance of the super class and the sub's must provide this method.

Say you had some super class that had a "value" method
There's no way the super can implement any version of this for all sub's but with an abstract it could force the subs to implement it.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to