Java's object-oriented detailed summary
Learning object-oriented has been a whole week, the object-oriented three characteristics of inheritance, encapsulation, polymorphism of the basic concepts and application scenarios, case examples have been detailed study, a few days to say that the weekend and just finished, in the Java in a relatively abstract object-oriented to do a small summary, strengthen the memory and understanding:
1. Object-oriented three major features:
1) Package:
1.1) Class: Encapsulates the data and behavior of an object
1.2) Method: Package is the specific business implementation details
1.3) Access control modifier: Encapsulates the access permission--protect the data
2) Inheritance:
2.1) Purpose: Reuse of code
2.2) Parent class: Common subclass: Special
After inheritance, subclasses have the following: The parent class and the child class
2.3) Single inheritance, transitivity
3) Polymorphism:
3.1) Meaning: Polymorphism of behavior, polymorphism of object
3.2) upward styling, forced type conversion, instanceof
3.3) Representation: Override, Reload (overload)
2. The object-oriented course content detailed summary:
1) Day01: oop_day01_ Classes and objects
What is a class? What is an object?
2) day02:oop_day02_ class, heavy duty
2.1) How do I create a class? How do I create an object? How do I access class members?
2.2) equal sign between reference types
2.3) NULL and NullPointerException
2.4) Overloading of methods
2.5) Construction Method
2.6) This keyword
3) day03:oop_day03_ memory Management, array of reference types
3.1) Java memory management: heap, stack, method area
3.2) Array of reference types
4) day04:oop_day04_ inheritance, rewriting
4.1) Inheritance
4.2) Super keyword
4.3) upward styling
4.4) method overrides
5) day05:oop_day05_package, public, static, final, inner class
5.1) Differences between overrides, overrides, and overloads of a method
5.2) package, import
5.3) Access Control modifiers
5.4) Static
5.5) Final
5.6) member inner class, Anonymous inner class
6) Day06:oop_day06_ abstract class, interface
6.1) Static final constant
6.2) Abstract method
6.3) Abstract class
6.4) interface
--User article: The difference between abstract class and interface
7) Day07:oop_day07_ polymorphic
Polymorphic: Up styling, forced type conversion, instanceof
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Java's object-oriented detailed summary