Java-basic learning-summary of object-oriented thinking (two)

table of Contents

1. Use of toStroing() method in object class

2. Use of packaging

3. Conversion between basic types, packaging classes, and String classes

4.static

4. Singleton mode

5.final

6. Abstract class

7. Interface

8. Contrast between interface and abstract class


1. Use of toStroing() method in object class

2. Use of packaging

3. Conversion between basic types, packaging classes, and String classes

4.static

4. Singleton mode

(1) Hungry Chinese style

(2) Lazy man (there is a thread safety issue)

(3) Advantages of singleton mode

(4) Application scenarios of singleton mode

5.final

6. Abstract class

7. Interface

8. Contrast between interface and abstract class

Reference: Java Object-Oriented Learning Courseware of Shang Silicon Valley Education.

 

Guess you like

Origin blog.csdn.net/yezonghui/article/details/112601872