Purchase Solution

Important Programming Practices on Java Code

Not what you're looking for?

Ask Custom Question

I need assistance in commenting on the enclosed code, consider things like code layout, use of variable names, general readability and understandability.

The enclosed program suppose to Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Also, implement a class called FullAddress that inherits the above attributes while adding the attributes (int) houseNumber (simply 1, 2, ... etc. - i.e. no 1a or 3b's allowed), street1Name, street2Name and cityName. We are not suppose to forget to use the keyword super in the constructor. The application class to allow the user to input an address details and then give the user the choice of viewing the short address details or the long address details. This means the final answer should have a minimum of 3 classes for the application - We may use more if we are including utility classes. Further we are suppose to use Use exception handling to make the program robust.

Purchase this Solution

Solution Summary

Discusses how to consider important programming aspects including code layout, use of variable names, general readability and understandability using example Java Code.

Solution Preview

In general it is a good software programming practice to follow variable naming conventions. For example, include abbreviated form of variable type as prefix.

Also, it is ...

Purchase this Solution


Free BrainMass Quizzes
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.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

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.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.