Skip to Content
Java: The Complete Reference, Eleventh Edition, 11th Edition
book

Java: The Complete Reference, Eleventh Edition, 11th Edition

by Herbert Schildt
December 2018
Intermediate to advanced
1248 pages
33h 55m
English
McGraw-Hill
Content preview from Java: The Complete Reference, Eleventh Edition, 11th Edition

CHAPTER

7

A Closer Look at Methods and Classes

This chapter continues the discussion of methods and classes begun in the preceding chapter. It examines several topics relating to methods, including overloading, parameter passing, and recursion. The chapter then returns to the class, discussing access control, the use of the keyword static, and one of Java’s most important built-in classes: String.

Overloading Methods

In Java, it is possible to define two or more methods within the same class that share the same name, as long as their parameter declarations are different. When this is the case, the methods are said to be overloaded, and the process is referred to as method overloading. Method overloading is one of the ways that Java supports ...

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.
Start your free trial

You might also like

Java: The Complete Reference, Twelfth Edition, 12th Edition

Java: The Complete Reference, Twelfth Edition, 12th Edition

Herbert Schildt

Publisher Resources

ISBN: 9781260440249