OOP: Object-Oriented Programming
OOP: Object-Oriented Programming
Chapter1对象导 本章将介绍面向对象程序设计的基本概念, 包括OOP开发方法的描述 抽象 封装 多态 继承
Chapter 1对象导言 • 本章将介绍面向对象程序设计的基本概念, 包括OOP开发方法的描述 – 抽象 – 封装 – 多态 – 继承
抽象的过程 什么是抽象? Abstraction is the process or result of generalization by reducing the information content of a concept or an observable phenomenon, typically to retain only information which is relevant for a particular purpose shttpen.wikipedia.org/wiki/abstraction>
抽象的过程 • 什么是抽象? Abstraction is the process or result of generalization by reducing the information content of a concept or an observable phenomenon, typically to retain only information which is relevant for a particular purpose. <http://en.wikipedia.org/wiki/Abstraction>
什么是抽象 Book domain concept visualization of title domain concept public class Book representation in a private String title object-oriented programming language public Chapter getchapter(int).]
什么是抽象
抽象的过程 所有的的程序设计语言都提供抽象的机制 程序通常是现实的一个模型:一个窗口,一辆战车 以复杂度的角度来看,抽象的好处在于让 人忽略无关的细节 ·人们能够解决的问题的复杂性直接与抽象 的类型和质量有关。 程序设计语言的演化过程是抽象层次不断 提高的过程
抽象的过程 • 所有的的程序设计语言都提供抽象的机制。 – 程序通常是现实的一个模型:一个窗口,一辆战车。 • 以复杂度的角度来看,抽象的好处在于让 人忽略无关的细节 • 人们能够解决的问题的复杂性直接与抽象 的类型和质量有关。 • 程序设计语言的演化过程是抽象层次不断 提高的过程