搜索资源列表
Java2 类库
- 本书由Java技术的创建者编写,对Java 2平台标准版,V1.2中新增加的包及类进行了描述。本书主要由包概述和类描述构成。包概述对每个包及其所有类进行了简要描述,另外还画出了包中的类的继承层次结构示意图。每个类描述都独自构成一个小节,包含了类层次结构示意图、类描述、类示例、成员概述以及那些在版本1.2中作了修改或新增的类成员的描述。还详细说明了Java软件开发包(JDK)1.1到从版本1.2对类及方法所作的修改。需要指出的是:本书是补充版本,有些材料需要参阅《The Java Class Li
继承和子类实例
- 有关java继承和子类的实例.有助于学习者参考和练习-the inheritance and child class examples. Reference and help learners practice
java2
- 实验8 继承与多态 8.1 实验目的 (1) 理解类的继承,掌握变量隐藏、方法覆盖的概念。 (2)理解引用类型的变量的赋值转换原则。 (3)理解多态概念,掌握方法的匹配调用原则; (4)理解抽象类与接口的使用; (5)理解this和super的含义及使用。 (6)理解访问控制符的使用 8.2 知识要点 8.2.1 继承的概念 通过类的继承,祖先类的所有成员均将成为子类拥有的“财富”。但是能否通过子类对象直接访问这些成员则取决于访问权限设置。Object
数据结构的C++描述
- 目 录 译者序 前言 第一部分 预备知识 第1章 C++程序设计 1 1.1 引言 1 1.2 函数与参数 2 1.2.1 传值参数 2 1.2.2 模板函数 3 1.2.3 引用参数 3 1.2.4 常量引用参数 4 1.2.5 返回值 4 1.2.6 递归函数 5 1.3 动态存储分配
1
- 实验 1 对象的创建和使用 ( l )理解类的定义; ( 2 )掌握对象的声明; ( 3 )学会使用构造函数初始化对象; ( 4 )使用类的数据和方法。 实验 2 类的静态成员与实例成员 ( l )掌握静态成员与实例成员的区别; ( 2 )学会使用类的静态成员。 实验 3 变量的作用域和 this 关键字 ( l )理解变量的作用域; ( 2 )掌握成员变量,局部变量和块变量的区别; ( 3 )学会使用 this 关键字。 实验 4
fourth-07301048
- 第四次作业 1、 创建一个Animal(动物)类,让Horse(马),Dog(狗),Cat(猫)等动物继承Animal类。在Animal类中定义一些方法,让其子类重写这些方法,编写一个运行时多态的程序。 创建一个Animal类型的数组,在其中填充不同子类,然后调用自己的父类中的方法,看看会有什么情况发生。 2、 修改练习3.3,使Animal成为一个接口。 3、 在面向对象的绘图应用应用程序中,可以绘制圆形、矩形、直线等很多其他的图形对象。这些对象都具有相同的特定状态
4
- 继承的运用。子类的方法及变量的设定方法。-The use of inheritance. Subclass methods and methods of variable settings.
c4
- 面向对象 类与封装 子类与父类的继承 缺省函数 完整函数-Classes and object-oriented package with the parent class inherit the default function of the integrity of the function
5
- Java的面向对象编程 掌握类的定义以及继承机制,熟悉方法的多态性。1、 成下面父类及子类的声明:(1)声明Student类。属性包括学号、姓名、英语成绩、数学成绩、计算机成绩和总成绩。方法包括构造方法、get方法、set方法、toString方法、equals方法、compare方法(比较两个学生的总成绩,结果分大于、小于、等于)、sum方法(计算总成绩)和testScore方法(计算评测成绩,即平均成绩-Java object-oriented programming, as well as
Example
- 继承 1. 实验目的 巩固如下概念: 子类的继承性,子类对象的创建过程,成员变量的继承与隐藏,方法的继承与重写。 2. 实验要求 (1)编写一个Java应用程序,除了主类外,该程序中还要定义4个类:People、ChinaPeople、AmericanPeople和BeijingPeople类,要求如下: People类具有访问权限是protected的double型成员:height和weight,以及public void speakHello()、
Example
- 子类的继承,成员变量的继承与隐藏,方法的继承与重写-Subclass inheritance, inheritance and hiding member variables, methods, inheritance and override
Task4
- 类功能的实现,详细的说明类的继承,父类与子类间的调用关系-class application
class-inherit-example
- 本例子实现了一个简单的类的继承,实现了子类和父类的属性继承操作-This example is the realization of a simple class inheritance, and realise a subclass property inheritance operation......
class_inheritance
- 一个关于c++中类继承的经典例子,实现父类与子类的信息共享与沟通-A classic example of c++ class inheritance parent class and subclass information sharing and communication
extends
- 建立父类,通过关键字extends 实现子类的继承,减少代码的复用,便于维护-The establishment of the parent class, subclass inheritance by keyword extends, code reuse, easy to maintain
animal
- 由C++语言编写,示例 animal类,体现父类子类的继承和多态。-By written in C++ language, an example of the Animal class, reflecting the parent class subclass inheritance and polymorphism.
javarecket
- JAVA反射机制,应用于子类与父类的继承。-JAVA reflection mechanism, used in the subclass inherits the parent class.
CPP_parent
- 父类与子类的基本应用示范。父类是车类,子类是自行车,摩托车,汽车等。元素有重量,速度等等。适合于初学者理解父类与子类的继承问题。-Parent class and subclass of the basic application demonstration. Parent class is the car class, subclass is bicycles, motorcycles, cars and so on. Element has a weight, speed and so on
animal
- 由C++语言编写,示例 animal类,体现父类子类的继承和多态。-By written in C++ language, an example of the Animal class, reflecting the parent class subclass inheritance and polymorphism.
继承
- 子类对父类的覆盖,向上转型,子类的继承。(The subclass is overlaid with the parent class, and the subclass is inherited.)