Which operator must be used to invoke the methods of an object? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Which operator must be used to invoke the methods of an object?

9th Apr 2017, 6:44 AM
amit
2 ответов
+ 2
.
9th Apr 2017, 7:02 AM
Meharban Singh
Meharban Singh - avatar
+ 1
If it's static, you can just call the method. But if it's non-static, you need to create an object and then call the method by first calling the object then followed by the dot operator and then followed by the method.
9th Apr 2017, 6:52 AM
Deddy Tandean