Created
January 20, 2014 07:00
-
-
Save rayjcwu/8516105 to your computer and use it in GitHub Desktop.
You are creating some functionality intended to be private to the com.mycompany.marketing package. You have defined ian interface for which you plan on having a few package-speciic implementions. Your IDE insists that your implementation of doSomething must be public, yet the interface method is not public. Why is there a discrepancy?
1. All int…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.marketing; | |
| interface PackageLevelInterface { | |
| void doSomthing(); | |
| } | |
| public class MyClass implements PackageLevelInterface { | |
| @Override | |
| /// IDE insists on this being public (?) | |
| public void doSomthing() { | |
| // TODO: Auto-generated method stub | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment