|
Can a class decription be used to create more than one object? A good answer might be:Yes. A big program might need thousands of objects as it runs, but might have only a few dozen class descriptions. |
Syntax of a Class DefinitionClass definitions look like this:
Often programmers separate the definition into three sections:
Separation into sections is done for convenience; it is not a rule of the language. A simple class might have just a few variables and be defined in just a few lines of code. A large, complicated class might take thousands of lines of code for its definition. |
QUESTION 6:Does each object require a main() method? Click Here after you have answered the question |