zoukankan      html  css  js  c++  java
  • 每日总结

    今天复习的是类的属性,类的属性分为两类:成员属性和局部变量,他们的作用范围不同。

    学习了this关键字的作用和使用方法,主要用于构造函数中。

    public class Account {
    private String accountID;
    private String accountname;
    private String operatedate;
    private int operatetype;
    private String accountpassword;
    private int accountbalance;
    private int amount;
    public Account(String accountID, String accountname, String operatedate, int operatetype, String accountpassword,
    int accountbalance, int amount) {
    super();
    this.accountID = accountID;
    this.accountname = accountname;
    this.operatedate = operatedate;
    this.operatetype = operatetype;
    this.accountpassword = accountpassword;
    this.accountbalance = accountbalance;
    this.amount = amount;
    }
    public Account(String accountID, String accountname, String operatedate, int operatetype, int amount) {
    super();
    this.accountID = accountID;
    this.accountname = accountname;
    this.operatedate = operatedate;
    this.operatetype = operatetype;
    this.amount = amount;
    }

  • 相关阅读:
    2018-div-matrix
    cf663div2
    生成树
    Call to your teacher
    并查集总结
    分组背包
    被3整除的子序列
    多重背包
    12.05
    django生命周期图
  • 原文地址:https://www.cnblogs.com/lxywsx/p/14175368.html
Copyright © 2011-2022 走看看