The Demons Command Each Other
From Huben's Wiki
Line 96: | Line 96: | ||
window.setVisible(true); | window.setVisible(true); | ||
} | } | ||
− | <pre> | + | </pre> |
* The first statement, "Cryptogram window = new Cryptogram();" creates an object named "window" that has class Cryptogram. | * The first statement, "Cryptogram window = new Cryptogram();" creates an object named "window" that has class Cryptogram. | ||
* The first statement uses the method Cryptogram() to create the object. As we mentioned before, methods with the same name as their class start with capital letters and are called '''constructors'''. They make new objects, in this case window. | * The first statement uses the method Cryptogram() to create the object. As we mentioned before, methods with the same name as their class start with capital letters and are called '''constructors'''. They make new objects, in this case window. |