127k views
1 vote
In Programming "void doSomething();" is known as a method, otherwise known as

User Clark Kent
by
5.7k points

1 Answer

6 votes

Otherwise its known as function and the main difference between a Function and a Method is Functions are defined outside of classes, while Methods are defined inside of and part of classes.

User Mattias
by
5.5k points