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

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.

answered
User Mattias
by
7.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.