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

User Clark Kent
by
8.9k 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
7.8k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.