Object-Oriented Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crystal2005
    New Member
    • Apr 2007
    • 44

    Object-Oriented Question

    Hi,

    Could anyone explain to me the following code means?

    Code:
    public class BovinetineMakerDriver {
    	public static void main(String[] args) {
    		BovinetineMakerAPI api = new BMAPIImplementation(); // I need an explanation of this line
            }
    }
    from what i have learned, it suppose to be
    Code:
    BovinetineMakerAPI api = new BovinetineMakerAPI();
    How do i define those class for BMAPIImplementa tion()?

    Thank you guys.
    Last edited by JosAH; May 1 '08, 05:58 AM. Reason: fixed the [code] ... [/code] tags
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Think of a class like this:

    [code=java]

    public class BMAPIImplementa tion implements BovinetineMaker API {
    ...
    }
    [/code]

    ... or this:

    [code=java]

    public class BMAPIImplementa tion extends BovinetineMaker API {
    ...
    }
    [/code]

    kind regards,

    Jos

    Comment

    • crystal2005
      New Member
      • Apr 2007
      • 44

      #3
      Well...

      Thanks Jos, i got some ideas. Any further question I'll post in here

      Comment

      Working...