Created
May 29, 2021 07:30
-
-
Save swetharnaik/a6168c839de741a46baa9d9f2f49408e to your computer and use it in GitHub Desktop.
Java 11 - Calling interface default method
This file contains 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
public class Calculator implements Calculate { | |
public static void main(String[] args) { | |
Calculate calculator = new Calculator(); | |
System.out.println(calculator.doCalculation(4,1)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment