I am just a Java's initiator to find this English book. Here is mainly some summary to help you remember, just in the blog just to urge yourself.
I am apologizing for friends who feel unhearen.
If you have a better learning method, please enlighten me! thank you very much:)
Struggling with JAVA for a while now, still have not got the big picture of concepts. Although stuffed with all the words, like polymorphism, inheritance, inner class, abstract, etc. I feel bogged down everytime I? Try to use? Them In My Program. This Makes Me Feel So Frustrate, IT IS Like A Philosophy Book in Java. Hopefully, I Will Get Everything I need from it.
Chapter 1
1.1
All Programming Languages Provide Abbstractions.
? Assembly language is a small abstraction of the underlying machine.?Many so-called? "Imperative" language (Fortran, BASIC, and C) were abstractions of assembly language. The primary abstraction of these languages require you to think in terms of the Structure of the Computer Rather THAN THE STRUCTURE OF THE PROBLRAMMER MUSTABLISH The Association BetWeen The "Solution Space" and the "problem".
The altrenative to? Modeling the machine is to model the problem you're trying to solve. Early languages such as LISP and APL chose particular views of the world. PROLOG casts all problems into chins of decisions. Each of these approaches is a good solution To the? Particular Class of Problem They're Designed To Solve, But at You Step Outside That Domain The Become awkward.
The Object-Oriented approach provides the programmer tools to represent elements in the problem space, thus the approach is not constrained to any particular type of problem. We refer to the elements in the problem and their representations in the solution space as "objects". For those objects, which has no problem-space analogs, the porgram is allowed to adapt itself to the lingo of the problem by adding new types of objects. Thus, OOP allows us to describe the problem in terms of problem, rather than in terms Of The Computer Where The Solution Will Run.some Designer Advocate The Combination of Various Approaches Into MultipaRadigm Programming Language.
Alan Kay Summarized Five Basic Characteristics Of Smalltalk, The First Successful Object-Oriented Language and ONE The Languages Upon Which Java Is Based.
1. Everything is an Object.a class is an Object, an integer is an object ... everything is an object.
2. A program is a bunch of objects telling each other what to do by sending messages. No matter inherit or extend, or simply? Instantiate another object / class, all the work is about the interraction of objects.
3.Each object has its own memory made up of other objects. "Create a new object by making a package containing existing objects." To build a complex program while hiding it behind the simplicity of objects. Does this mean inheritence? Probably not.
4.every Object Has A Type.
5.all Objects of a Particular Type Can Receive The Same Messages.
?