登录
首页 » java » java面向对象基础5

java面向对象基础5

于 2023-02-24 发布 文件大小:2.35 kB
0 64
下载积分: 2 下载次数: 1

代码说明:

1.static final常量:   1)必须声明同时初始化,不能被改变   2)通过类名点来访问   3)建议:所有字母大写   4)常量在编译时被直接替换具体的数     效率高,建议使用 2.抽象方法:   1)由abstract修饰   2)只有方法的定义,没有方法的实现({}都没有) 3.抽象类:   1)由abstract修饰   2)包含抽象方法的类必须是抽象类     不包含抽象方法的类也可以是抽象类--我愿意   3)抽象类不能被实例化   4)抽象类都是要被继承的,子类继承后:     4.1)子类中重写父类的抽象方法--建议     4.2)子类也声明为抽象类   5)抽象类的意义:     5.1)父类的意义:         5.1.1)封装所有子类所共有的数据和行为 5.1.2)为所有子类提供了一种公共的类型     5.2)包含抽象方法,         为所有子类提供了一个统一的入口 4.接口   1)是一个标准、一个规范     实现了接口就能干某件事---API时再深入理解   2)由interface定义   3)只能包含常量和抽象方法   4)接口不能被实例化   5)接口是需要被实现/继承的,实现类/子类:     必须重写接口中的所有抽象方法   6)一个类可以实现多个接口,用逗号分隔

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 物流管理系统,含源代码和使用手册
    资源描述 将系统的原程序拷贝到本地计算机后,去掉文件夹的只读属性,按照《安装配置说明书》内容完成配置后,便可在本地计算机上运行网站了。 物流信息网主要包括前台和后台两部分,前台为会员注册及信息浏览,后台主要是信息管理界面。 会员注册 用户以会员的身份登录之后才能搜索及查看相应的物流信息。所以用户一定要先进行会员注册。
    2022-03-21 13:45:44下载
    积分:1
  • ChinaMobile
    这是我在东方标准学习的时候做的一个项目,是中国移动的一个子管理任务模块,采用MVC模式设计,调试成功。(This is my standard in the east to learn to do when a project is a subset of China Mobile Management mission modules, the use of MVC design patterns, debugging success.)
    2008-08-21 09:03:02下载
    积分:1
  • 图书馆管理系统
    图书管理系统图书管理图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统图书管理系统
    2022-01-28 11:01:26下载
    积分:1
  • java书籍。
    关于Java的书。
    2022-08-17 21:14:00下载
    积分:1
  • pagehelper-5.0.0 - 副本
    分页工具,用于完成分页功能,使用简单,分页工具(Paging tool, used to complete paging function, easy to use)
    2019-01-16 09:50:44下载
    积分:1
  • okHttp例子
    应用背景okHttp是安卓开发的网络请求开源包,便于集成,使用非常方便。如果你在安卓开发的时候需要使用一款开源的网络请求资源包,okhttp一定是最优选择。关键技术okHttp-master是安卓开发的网络请求开源包,okhttp一定是最优选择。okhttp使用java技术开发,对并发连接池、请求优先级设定都做了完善
    2023-02-26 13:35:04下载
    积分:1
  • 一个基于Java语言开发的计算器的源代码
    一个基于Java语言开发的计算器的源代码-The development of a language based on Java source code for the calculator
    2022-01-22 07:40:34下载
    积分:1
  • Employee
    创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。 (Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)
    2013-11-27 11:43:06下载
    积分:1
  • Socket
    java socket编程比较好的学习资料ppt,能够帮助初学者迅速了解socket编程,包含这多个实例。(Socket ppt programming a good learning materials Java, can help beginners quickly understand the socket programming, including the many examples. )
    2016-12-11 11:36:20下载
    积分:1
  • music
    建议的安卓音乐播放器,很简单的代码,适合新手学习(Andrews recommended music player, a very simple code, suitable for novice learning)
    2013-11-06 16:37:49下载
    积分:1
  • 696518资源总数
  • 105022会员总数
  • 15今日下载