Skip to Content
Java: The Complete Reference, Twelfth Edition, 12th Edition
book

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

by Herbert Schildt
November 2021
Intermediate to advanced
1280 pages
34h 57m
English
McGraw-Hill
Content preview from Java: The Complete Reference, Twelfth Edition, 12th Edition

CHAPTER 6

Introducing Classes

The class is at the core of Java. It is the logical construct upon which the entire Java language is built because it defines the shape and nature of an object. As such, the class forms the basis for object-oriented programming in Java. Any concept you wish to implement in a Java program must be encapsulated within a class.

Because the class is so fundamental to Java, this and the next few chapters will be devoted to it. Here, you will be introduced to the basic elements of a class and learn how a class can be used to create objects. You will also learn about methods, constructors, and the this keyword.

Class Fundamentals

Classes have been used since the beginning of this book. However, until now, only the most ...

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, Thirteenth Edition, 13th Edition

Java: The Complete Reference, Thirteenth Edition, 13th Edition

Herbert Schildt, Dr. Danny Coward
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan

Publisher Resources

ISBN: 9781260463422