Purchase Solution

Explanation of Java Overloaded Methods with Example Code

Not what you're looking for?

Ask Custom Question

Give 3 examples of overloaded methods for a description of the size of a room.
Explain each of them.

Purchase this Solution

Solution Summary

The expert explains overloaded methods, complete with examples. The description of a room is determined.

Solution Preview

Java allows a method to share it's with another - allowing one name to be used for different methods. This is true as long as the methods having the same name have argument lists that are not identical, i.e. they do not have the same types of variables at the same positions in the argument. This is known as method overloading. Java resolves overloaded method names using the types of the argument expressions.
Following is the example of three overloaded methods which computes size of a room. Note, I ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

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.