Page 455 - Cs_withBlue_J_C11_Flipbook
P. 455
Step 2: A BlueJ: Create New Package window appears. Enter any package name (Eleven in this example) and click on OK
button.
Step 3: The package with the name Eleven will appear on the BlueJ window.
Step 4: Double-click on the given package (Eleven in this case). In the new package window, click on the New Class tab
on the left pane.
Step 5: The Create New Class dialog box appears. In the text box, enter the class name (say Area) and click on OK button.
Step 6: Double-click to open the class Area. Type the program. Compile and debug it until ‘Class compiled - no syntax
errors’ message is obtained.
Step 7: Close both the class and the package.
Note: We can create multiple classes under any package by the above-mentioned steps.
453
Packages 453

