Does it matter if the operator is public or private? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does it matter if the operator is public or private?

19th Jul 2016, 5:56 AM
Binoman
5 Answers
+ 1
it needs to be static to have something to put into memory without it the code will be lost and wont compile
14th Dec 2016, 5:09 PM
Mike Daviss
Mike Daviss - avatar
0
can you specify ?
20th Jul 2016, 3:38 PM
Ahmad Y. Alrawi
Ahmad Y. Alrawi - avatar
0
If you are making a overloaded operator it has to be public
20th Jul 2016, 9:35 PM
Robert Jones
0
yes it has to be public and static
27th Nov 2016, 3:14 PM
Lk Bhargav
Lk Bhargav - avatar
0
Yeah it you have to specify the access modifier to know the scope of the method
17th Jan 2017, 1:21 PM
kiki