Exercise 2.7

Cover Book - (Objects First with Java_ A Practical Introduction Using BlueJ 6th Edition) David J. Barnes & Michael Kölling - Objects First with Java_ A Practical Introduction Using BlueJ. 6-Pearson (2016)

When i change the outer wrapper to class public TicketMachine the class diagram become red mesh.

TicketMachine diagram in red mesh and become error
red mesh Ticket machine diagram

After i try to compile it, it show some error. The first error, it said that it expect an identifier after class. So i change it back to erlier version. I think the error message is clear enough.

After that, the diagram become some grey slanted line. an can be compiled with no problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.