0
In this program , why there is need to write Void before bark() method
public class Animal {ļ»æ void bark() { ļ»æ System.out.println("Woof-Woof");ļ»æ }ļ»æ }
2 Answers
+ 2
Java course special for [2]
https://www.sololearn.com/Course/Java/?ref=app
- 1
If a function don't need to "return" something you should use "void"