zoukankan      html  css  js  c++  java
  • 每日日报7月21日

    1.今天学习了接口浅议

    public class XingXiSB implements cunBu,school,work{
    public String getName()
    {
    return name;
    }
    public int getAge()
    {
    return age;
    }
    public String getXl()
    {
    return xl;
    }
    public double getX()
    {
    return nx - 10000;
    }
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    XingXiSB x = new XingXiSB();
    System.out.println("姓名: " + x.getName());
    System.out.println("年龄: " + x.getAge());
    System.out.println("学历: " + x.getXl());
    System.out.println("年薪: " + x.getX());
    }

    }
    interface cunBu{
    String name = "李东";
    int age = 18;
    public abstract String getName();
    public abstract int getAge();

    }
    interface school{
    String xl = "硕士学位";
    public abstract String getXl();
    }
    interface work{
    String workname = "大数据公司";
    String zw = "程序员";
    double nx = 20000;
    public abstract double getX();
    }

    2.没有遇到问题

    3.明天打算学习

    构建javaweb应用

  • 相关阅读:
    hdu1410 数学题组合概率 log优化
    Triangle
    Unique Paths II
    Unique Paths
    Pascal's Triangle II
    Pascal's Triangle
    Plus One
    Remove Duplicates from Sorted Array II
    Remove Duplicates from Sorted Array
    Remove Element
  • 原文地址:https://www.cnblogs.com/wanghaoning/p/13423972.html
Copyright © 2011-2022 走看看