The Fission Theory: This theory proposes that the Moon was once part of the Earth and somehow separated from the Earth early in the history of the solar system.
When you actually use that class to make a THING, this is what you make. A method is a bit of code that can be called when needed (often as part of an class, but not always) Here's an example: I write a class called Ball. In my main code, I then write a=Ball.new, b=Ball.new, c=Ball.new.
active oldest votes. up vote 85 down vote. Private is a modifier than gives the scope of the class, sub, or function. A sub and a function are both subroutines, or sections of code that can be called in the program. The difference between them is that a function has a return value and a sub does not.A class is a group of code that can include subs, functions, and other stuff. share | improve this answer.he difference between them is that a function has a return value and a sub does not. A class is a group of code that can include subs, functions, and other stuff.