⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interfacecalcul.java

📁 介绍了java的一些应用
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package InterfaceCalculator;/** * * @author liuwei */interface addtion{    public void add(double a,double b);}interface subtraction{    public double minus(double a,double b);}abstract class calcula{    abstract public double multiply(double a,double b);    abstract public double division(double a,double b);} class intercalcul extends calcula         implements addtion,subtraction{//int a,b;public double add(double a,double b);{    double c;    c=a+b;    return c;} public double minus(double a,double b);{    return (a-b);  }public double multiply(double a,double b);{    return a*b;} public double division(double a,double b);{    return a/b;}    public void add(double a, double b) {        throw new UnsupportedOperationException("Not supported yet.");    }}public class interfacecalcul{  public static void main(String[] args){    intercalcul cal=new intercalcul();    System.out.println(cal.add(5.2,6.2));}  }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -