MindMap Gallery Java object-oriented
Java object-oriented mind map shares the knowledge of classes, inheritance, polymorphism, interfaces, abstract classes, and encapsulation. I hope this mind map will be helpful to you.
Edited at 2023-07-28 19:39:58This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
Java
Java object-oriented
kind
concept
A unified description and overview of a type of things, mainly including data description and behavior description
Attributes
public modification
Ordinary member variables
static modification
class variable
静态成员变量推荐使用类名调用,不推荐使用类对象调用【没有对象】
静态成员变量在类文件加载阶段,申请内存【数据区】空间,已经具备数据的存储能力和数据提供能力
静态成员变量在代码中唯一,对于类唯一,对于当前程序也是唯一。
静态成员变量一般用于共享资源,记录数据操作,一处修改,所有位置都会受到影响。
静态成员变量也可以称之为【类变量】
final modification
constant
Constant, cannot be modified
method
member method
static method
mark
静态成员方法推荐使用类名调用,不推荐使用类对象调用【没有对象】
静态成员方法可以直接使用类内的其他静态资源
静态成员方法不可以使用类内非静态资源
静态成员方法在类文件加载阶段,申请内存【方法区】空间,在方法区中已经具备执行能力,执行相关的所有内容都已准备就绪【权限修饰,返回值类型,方法名,形式参数列表,方法体,异常】
静态成员方法也可以称之为【类方法】
静态成员方法常用于工具类封装,代码执行效率高
Construction method
Used to instantiate objects, divided into parameterized construction and parameterless construction. If you do not write a constructor, there will be a parameterless constructor by default.
Setter and Getter
abstract method
It can only be written in abstract classes or interfaces. It has no method body and must be rewritten.
Method overloading
In the same class, the method names are the same, but the number of parameters and data types are different.
Method overriding
In the inheritance relationship, the subclass redefines the method body of the parent class, and the method name, parameter list, and return value type are exactly the same.
Instantiate objects, properties and call methods
Class name class object = new class name();
class object.properties
class object.method
inherit
father
Subclass
Polymorphism
interface
Interface class
define format
interface interface name {}
Intra-class format
The default keyword for member properties is public static final, which is a public static constant and must be initialized.
The method default keyword is public abstract, which is a public abstract method.
Features
Multiple inheritance, multiple implementations
Implementation class
define format
class class name implements interface name {}
Require
You must rewrite the method that implements the interface, or turn the class into an abstract class
abstract class
Keywords
abstract
cannot be instantiated
encapsulation
Hide internal implementation
Provide external interface