What is the correct syntax to call a method named display() from the same class?

Last Updated :
Discuss
Comments

What is the correct syntax to call a method named display() from the same class?

display();

class.display();

void display();

call display();


Share your thoughts in the comments