Difference between creating a “new object” and “Class objectname”

后端 未结 5 581
忘掉有多难
忘掉有多难 2021-01-06 15:03

Say for example I have a class called Phone.

What is the difference between:

Phone p;

and

Phone p = new Phone(200)          


        
5条回答
提交回复
热议问题