Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Some Main class{
- public void main(){
- MyInterface mi = new MyClass();
- mi.myMethod();
- }
- }
- class MyClass implements MyClassInterface {
- void myMehtod(){
- system.out.println("hello");
- }
- }
- MyClassInterface interface {
- void myMethod();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement