Install eclipse application
Install eclipse and create a shortcut to open the application and put it on the D drive.
Create a Java project named project name
src and create a package named com.hg.dem02;
create two classes named Demo02PhoneTwo and Phone;
write the source code in the first class and The annotation
is mainly defined in the second class.
Define a class to simulate "mobile phone" things.
Corresponds to the category (attribute);
brand price color
member method (behavior);
call group text messaging
Save and run
Running results and overall
big data 2003 student number 2020080603020