- 65
- 0
- 约6.88千字
- 约 7页
- 2016-10-06 发布于贵州
- 举报
JAVA 实验告一:面向对象特性实验
实验报告
实验项目一 Java面向对象特性实验
多态性与动态绑定
一、实验目的
掌握多态性在继承中的运用;
理解动态绑定的含义;
学会使用抽象类;
了解成员变量的隐藏。
二、实验内容
假设某班级里既有本科生也有研究生,请编写程序统计出全班学生的成绩等级并显示出来。.
三、实验原理
Java上溯造型技术、抽象类、继承性、多态性、动态绑定等技术原理。
四、实验环境
主CPU 586以上,内存1G以上,操作系统Windows XP,eclipse 。
实验步骤
1、
一、本实验设计 3 个类 , 分别是学生类 Student, 本科生类 Undergaduate, 研究生类Postgraduate, 其中 Student 类是一个抽象类 , 它包含一些基本的学生信息如姓名、所学课程、课程成绩等 , 而 Undergraduate 类和 Postgraduate 都是 Student 类的子类 , 它们之间的主要差别是计算课程成绩等级的方法有所不同 , 研究生的标准要比本科生的标准高一些。
二、我通过本实验,了解并掌握了多态性在继承中的运用,理解了动态绑定的含义,并学会了使用抽象类,了解成员变量的隐藏。多态性也分静态多态性和动态多态性两种。静态多态性是指定义在一个类或一个函数中的同名函数,它们根据参数表(类型以及个数)区别语义,并通过静态联编实现动态多态性是指定义在一个类层次的不同类中的重载函数,它们一般具有相同的函数,因此要根据指针指向的对象所在类来区别语义,它通过实现。 动态多态是指发出同样的消息被不同类型的对象接收时,有可能导致完全不同的行为。即,在用户不作任何干预的环境下,的行为能根据调用它的对象类型自动作出适应性调整,而且调整是发生在程序运行时。
and actual case whether match; by is located land right nature; property status, whether has damage or quality problem; property using situation, rental or use; reference around similar property price, judge assessment value of rationality; whether exists property disputes, and seized, and freeze, and mortgage, and demolition, and transformation, limit situation. 2. to land right mortgage of, survey people should verified following information: land right card by contains Ming information (right people, and location, and nature, and term, and area,) and actual case whether match; land nature; land flat situation; ground buildings situation; reference around similar land price, judge assessment value of rationality; mortgage real whether has other mortgage right or notice registration established prior; whether exists property disputes, and seized, and freeze, and mortgage, limit situation. 3. other chattels, ownership, the value of the mortgage should be implemented, and whether factors such as easy handling. (C) pledge of collateral investigation procedures, investigators should enforce collateral value, convenience custody and disposition, pledge rights effective identification, registration, etc. (D) g
您可能关注的文档
- Hpbtrd初数学教学设计.doc
- HPV3000声卡安装.doc
- html-7 格的制作2.doc
- IaaS、SaS、PaaS计算OR服务.doc
- ibmX355356服务器配置RAID.docx
- ICL7135串行采集方式在单片机电压表中的应用.doc
- ICT标准化产资费说明.docx
- IDC网络系统全实施方案.doc
- IDL入门教程(下)(简单图形显示I).doc
- IDSA鼻窦炎南翻译.doc
- 广东省广州省实验中学教育集团2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州大学附属中学2025-2026学年八年级上学期奥班期中物理试题(解析版).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(含答案).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(解析版).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 2026《中国人寿上海分公司营销员培训体系优化研究》18000字.docx
- 《生物探究性实验教学》中小学教师资格模拟试题.docx
原创力文档

文档评论(0)