Crazy java study notes three

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq125281823/article/details/90414222

Object-Oriented

1. Inheritance
extends keyword
abstract classes
implement keyword
java1.8 (function interface) -> Lamba Expressions -> the foreach Method -> function interface
java1.8 default method
2. The polymorphic
upward transition
intensity revolutions
instance of (only determined the front-rear relationship, it may be used)
instance of two numbers before and after the operator requires inheritance relationships and implemented, the operator is in front of a variable used to determine whether a variable is an instance of the back, if the type of a variable in front than the rear a large intensity can not turn
3. package
private keyword
javabean package
single mode type
simple factory pattern
emphasized: the command programming interface

Guess you like

Origin blog.csdn.net/qq125281823/article/details/90414222
Recommended