| 
        
         | 
        
        
        Re: Interface Vs Abstract classes
        
		 | 
        
        
        Posted: Nov 29, 2004 12:46 AM
        
         | 
        
            
         | 
     
    
        
        
    Of course not.
  A Interface providec certain functionality without specifying a super class.
  A simple example: I wrote an Interface called Multilangual. It just contains the method setLanguage(String id).
  All of my formulas and dialogs and self-made panels implement this method. So if I change the language during runtime, I know for certain that the method is supported becaucse the objects implement the interface, I don't need to know the class of the objects.
  Another Interface I use is the DataHandler for formulas wich have to handle DB data. The methods are gotoNext(), gotoPrevious, restoreData(), saveToDB(), ...
  I access the forms through the interface, I can exchange one form with another very easily, because they all implement the same interface.
        
		
          | 
     
     
 |