Results 1 to 2 of 2
  1. #1
    sathishvegeta is offline Member
    Join Date
    Feb 2013
    Posts
    20
    Rep Power
    0

    Default Interface cant be understand

    XML Code:
    interface Company
    {
    public void profile();
    public void Department();
    }
    class Example implements Company
    {
    public void Department()
    {
    System.out.println("Display the Department");
    }
    }
    class Inter implements Company
    {
    public void profile()
    {
    System.out.println("Display the profile");
    }
    public static void main(String args[])
    {
    Inter ex = new Inter();
    Example ex1 = new Example();
    ex.profile();
    ex1.Department();
    }
    }
    CAN ANYONE HELP ME OUT HERE

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: Interface cant be understand

    Stop shouting! Use proper formatting, that is not XML. Ask a question.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Replies: 1
    Last Post: 07-08-2012, 05:23 PM
  2. I don't understand comparable Interface Please help me
    By chathura87 in forum New To Java
    Replies: 11
    Last Post: 03-01-2011, 06:48 AM
  3. i can't understand using interface as a type
    By sireesha in forum New To Java
    Replies: 3
    Last Post: 11-20-2007, 10:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •