

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of java programming concepts related to defining custom classes and creating objects. It includes discussions on jframes, instance methods, constructors, and creating a custom date class. The document also includes a lab exercise for creating a date class and testing it.
Typology: Study notes
1 / 3
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