Extract interface refactoring...

I have the following code:

When I do extract interface I can do


OR

How do I make it so that I can modify XIfc to have the added method public void bar i.e.

3 comments

Vinay Moharil wrote:

>I have the following code:
>
>

public class X implements XIfc {
>  public void foo() {}
>  public void bar() {}
>}]]>

>When I do extract interface I can do
>

public class X implements YIfc]]>

>
>OR
>
>

public class X implements XIfc, YIfc]]>

>How do I make it so that I can modify XIfc to have the added method public void bar i.e.
>
>

  public void foo();
>  public void bar();
>}
>
>public class X implements XIfc]]>

>
Did you try pull up member?

Jacques

0

Vinay Moharil wrote:

>Duh....

>
See. This is what happens when you leave behind the best half of your
brain with your old buddies ;)

BTW we need to do lunch sometimes. Send me an email directly
(jacques.morel(at)sabre.com)

Jacques

0

Please sign in to leave a comment.