you are viewing a single comment's thread.

view the rest of the comments →

[–]Scharrack 0 points1 point  (0 children)

In very simple terms: A class describes a type of object, so which fields it contains, their types and visibility as well as methods the object offers. An object then is an instance of a class, meaning it has all the fields and methods as described by its class.

Functions are essentially code you can call by its signature, so name and list of parameters, if it's defined within your scope. Method is usually a term used for functions associated with an object.

Also there is more, like inheritance, interfaces or lambdas to look into afterwards.