How to call the static method | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How to call the static method

10th Jul 2016, 11:26 AM
Rohan
Rohan - avatar
2 Respostas
+ 1
using class.. eg: if show(); is a static method of draw class. then to call show() u shd type draw.show();
10th Jul 2016, 2:04 PM
Vasudev PS
Vasudev PS - avatar
+ 1
you don't need to create object to call static method you can call that method by using class name in which that static method lying and method name classname (.)method name
5th Aug 2016, 7:14 AM
sachin tomar
sachin tomar - avatar