View Single Post
  #3 (permalink)  
Old 01-02-2008, 09:43 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Abstract method
Hello, eva.

An abstract method can only be declared in an abstract class. Also, when you "override" an abstract method it is actually called implementing that method. Remember that an abstract method cannot do anything by itself.

Code:
public abstract class Jupiter { public abstract void extractUsers() { System.out.println("Superclass output"); } }
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote