java p57 Chapter IV after-school exercise

1. Glossary: ​​constructor, abstract.

Constructor : a constructor is the same as the class name of the class method. Whenever After you create an object using the new keyword, it opened up memory space for new objects, java system will automatically call the constructor to initialize the newly created object

The key : ① the same class name

   ② constructor does not return type, reloadable

   ③ role: to initialize the data members

Abstract :

Guess you like

Origin www.cnblogs.com/liiiiiiiiiiinnnnnnnn/p/11569999.html