找回密码
 立即注册
theclass多态性笼统 | 企业管理 2022-09-23 97 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
JAVA相关基础知识JAVA相关基础知识1、面向目标的特征有哪些方面1.笼统:笼统就是忽略一个主题中与当时方案无关的那些方面,以便更充分地注意与当时方案相关的方面。笼统并不打算理解全面问题,而仅仅选择其间的一部分,暂时不必部分细节。笼统包括两个方面,一是进程笼统,二是数据笼统。2.承继:承继是一种联合类的层次模型,并且许可和鼓励类的重用,它提供了一种清晰表述共性的方法。目标的一个新类可以从现有的类中派生,这个进程称为类承继。新类承继了初始类的特性,新类称为初始类的派生类(子类),而初始类称为新类的基类(父类)。派生类可以从它的基类那里承继方法和实例变量,并且类可以修复或添加新的方法使之更适合特殊的需求。3.封装:封装是把进程和数据包围起来,对数据的访问只能通过已定义的界面。面向目标计算始于这个基本概念,即实际S界可以被描绘成一系列完全自治、封装的目标,这些目标通过一个受维护的接口访问别的目标。4.多态性:多态性是指许可不同类的目标对同一消息作出响应。多态性包括参数化多态性和包括多态性。多态性言语具有灵敏、笼统、行为共享、代码共享的优势,很好的管理了使用程序函数同名问题。…………………………

(JAVA-related basic knowledge JAVA-related basic knowledge 1. What are the aspects of goal-oriented features 1. Generalization: Generalization is to ignore those aspects of a topic that are not related to the current program, in order to pay more full attention to the aspects related to the current program. The general does not intend to understand the comprehensive problem, but only select a part of it, without some details for the time being. The generalization includes two aspects, one is the generalization of the process, and the other is the generalization of the data. 2. Inheritance: Inheritance is a hierarchical model of associative classes, and allows and encourages the reuse of classes, it provides a clear way of expressing commonalities. A new class of the target can be derived from an existing class, a process called class inheritance. The new class inherits the characteristics of the original class, the new class is called the derived class (subclass) of the original class, and the original class is called the base class (parent class) of the new class. A derived class can inherit methods and instance variables from its base class, and the class can fix or add new methods to better suit specific needs. 3. Encapsulation: Encapsulation is to surround the process and data, and access to the data can only be done through a defined interface. Object-oriented computing begins with the fundamental concept that the real world can be represented as a set of fully autonomous, encapsulated objects that access other objects through a maintained interface. 4. Polymorphism: Polymorphism refers to permitting different classes of targets to respond to the same message. Polymorphism includes parametric polymorphism and inclusive polymorphism. Polymorphic language has the advantages of sensitivity, generality, behavior sharing, and code sharing, and it can well manage the problem of using the same name of program functions. ……………………)

[下载]16293334362.rar




上一篇:c++ primer 第四版 源代码
下一篇:职业培训学校java面试题