

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Quiz Results: Mean: 16. STD: 8. Median: 18 Max 23. Distribution: <10: 2 10-14.5: 2 15-19.5: 4 20+: 4 Chapter 4 - Being Classy So far, we have looked at pre-defined Java capabilities and classes. You've been exposed to variables, types, input, output, expressions, assignment, conditionals, loops, and some standard classes and their methods (such as String, Scanner, File). In this chapter, you'll learn about defining your own classes and creating your own objects. That is, you will learn to define your own types. Before we start defining our own classes, let's look at some Java for manipulating windows. But first, let's look at a program that displays a couple of windows: TwoWindows.java javax.swing.* (Java eXtension - what does swing stand for?)
BoxFun uses the class ColoredRectangle