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;
    }

  • 相关阅读:
    python中的map,fliter,reduce用法
    python中的函数参数传递
    python中的全局变量和局部变量
    python中的函数定义
    python中的eval()和exec()函数
    kafka手动提交,丢失数据
    02-基本概念
    01-接触kafka
    (8)适配模式--结构性
    java内存划分
  • 原文地址:https://www.cnblogs.com/lxywsx/p/14175368.html
Copyright © 2011-2022 走看看