Java Programming
Not what you're looking for?
Create a Building class and two subclasses, House, and School. The Building class contains fields for square footage and stories. The House class contains additional fields for number of bedrooms and baths. The School class contains additional fields for number of classrooms and grade level (for example elementary or junior high). All the classes contain appropriate get and set methods.
Place the Building, House, and School classes in a package named com.courses.buildings. Create an application that declares objects of each type and uses the package. Save the necessary files as Building.java, House.java, School.java, and CreateBuilding.java.
Purchase this Solution
Solution Summary
The expert creates a building class and two subclasses.
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Basic Networking Questions
This quiz consists of some basic networking questions.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.