1 / 20
文档名称:

Thinking in java 部分笔记.doc

格式:doc   页数:20
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Thinking in java 部分笔记.doc

上传人:yunde113 2014/2/4 文件大小:0 KB

下载得到文件列表

Thinking in java 部分笔记.doc

文档介绍

文档介绍:Thinking in java
1 Introduction
Programming is about plexity: plexity of the issue you want to solve, laid upon plexity of the machine in which it is solved.
Human being is very much at the mercy of the particular language which has e the medium of expression for their society. The fact of the matter is that the real world is to a large unconsciously built up on the language habits of the group’
Like any language, Java provides a way to express concepts. To understand Java in this way, you must understand the problems with the language and with programming in general.
We will discuss programming problems, why they are problems and the approach Java has taken to solve them.
2 Introduction to Objects
There are two important things: object oriented programming (OOP) and Java’s basic control mechanism.
OOP is part of this movement toward using puter as an expressive medium.
The progress of abstraction:
The solution space and the problem space
You should think in term of the structure of the problem you are trying to solve. The programmer must establish the association between the machine model and the model of problem, the machine model is the place
where you are implementing that solution, the solution space; the model of problem is that is actually being solved, the problem space.
OOP allows the programmer to describe the problem in term of problem as it refers to the elements in the problem space and their representation in the solution space as “objects”;
There are five basic characteristics of OOP:
Everything is an object;
Think of an object as a fancy variable; it stores data, but you can “make request” to that object, asking it to perform operations on itself.
A program is a bunch of objects telling each other what to do by send messages.
Each object has its own memory made up of other objects.
Every object has a type.
Each object is a instance of a class. The most of important distinguishing characteristic of a class is “