[Solved] How would I go about implementing this Java interface?


See “What is an Interface?” http://docs.oracle.com/javase/tutorial/java/concepts/interface.html This will hopefully get you started with the basics you’re looking for.

The start of the implementation would look something like the following…

class Politician implements Speaker
{
  public void speak()
  { 
    // Method implementation
  }
  public void announce (String str)
  {
    // Method implementation
  }
}
class Lecturer implements Speaker
{
  public void speak()
  { 
    // Method implementation
  }
  public void announce (String str)
  {
    // Method implementation
  }
}
class Lecturer implements Speaker
{
  public void speak()
  { 
    // Method implementation
  }
  public void announce (String str)
  {
    // Method implementation
  }
}

public static void main(String [] args)
{
   Speaker s1 = new Politician();
   Speaker s2 = new Pastor();
   Speaker s3 = new Lecturer();
   // Do something...
}

0

solved How would I go about implementing this Java interface?