0
What is the difference between new operator and constructor?
Please explain in short.
5 Answers
0
new calls the constructor.
constructor creates the object
0
@jeremy can you share the syntax of both
0
no, do the courses
0
@jeremy
class Math
int m;
math m=new math();
this is the syntax of new operator. corrct?
where m is the reference to the object of math
0
this is all explained in the courses