Programming Languages Chapter 7 The Focus Drawing Using Existing Classes Java This Introduces Students

subject Type Homework Help
subject Pages 1
subject Words 245
subject Authors Barbara Ericson, Mark J. Guzdial

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Chapter 7
The focus in chapter 7 is on drawing using existing classes in Java. This introduces students to
the Java API and to the concepts of package, inheritance, interfaces, and constants. We start by
using the Graphics class in the java.awt package and later in the chapter switch to using the
Graphics2D class. This chapter gives students a chance to step back and apply some of what
they have learned by creating simple methods that do interesting things. The first methods are
sequential and the challenge is in understanding the existing classes and methods and using them
to solve simple problems.
In section 7.2 we show that you can create pictures by writing a program that would be hard to
do by hand using simple loops. It also makes the argument that a program specifies a process.
In section 7.3 we start using the Graphics2D class instead of the Graphics class. We point out
that the Graphics2D class inherits from the Graphics class. And we show that there are easy

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.