+ 1

What is bark()?

Guys, What is “ bark()” on class after “void”?

17th Mar 2019, 6:27 PM
Augusto Medri
Augusto Medri - avatar
2 Answers
+ 6
void bark() * void means the method does not return a value * bark is the name of the method *() the brackets are empty means this method does not need values
17th Mar 2019, 8:05 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
://bark() is simply method it can be anything fly(), dance(), programmers declare it what should of programs runs inside bark() like barking count, barking interval etc https://www.sololearn.com/learn/Java/2152/
17th Mar 2019, 6:41 PM
Sudarshan Rai
Sudarshan Rai - avatar