Day 4. Working with Objects
When you do work in Java, you use objects to get the job done. As you learned two days ago, Java is a heavily object-oriented programming language.
Almost everything you can do using Java is accomplished with objects. You create objects, modify them, move them around, change their variables, call their methods, and combine them with other objects. You develop classes, create objects out of those classes, and use them with other classes and objects.
Today, you work extensively with objects. The following topics are covered:
Creating objects (also called instances)
Testing and modifying class and instance variables in those objects
Calling an object's methods
Converting objects and other types of data from one class to ...
Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.