Programming Projects
Programming Projects require more problem-solving than Practice Programs and can usually be solved many different ways. Visit www.myprogramminglab.com to complete many of these Programming Projects online and get instant feedback.
Define a class called
Diamondthat is derived from either the classShapeBasics(Listing 8.12) or the abstract classShapeBase(Listing 8.19). A diamond has the same sort of top half as aTriangleobject, and its bottom half is an inverted version of its top half. Define a utility class having public static methods, such as the methodskipSpacesand other methods that draw horizontal lines, big V’s, and inverted big V’s. Recall that Self-Test Question 31 asked you to describe one method in this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access