Category: Object and Class
-
Class
Classes and Objects in Java are the fundamental components of OOP’s. Often there is a confusion between classes and objects. In this tutorial, we try to tell you the difference between Class and Object in Java. What is Class in Java? Class are a blueprint or a set of instructions to build a specific type…
-
Object
What is an object? Objects are key to understanding object-oriented technology. Look around right now and you’ll find many examples of real-world objects: your dog, your desk, your television set, your bicycle. Real-world objects share two characteristics: They all have state and behavior. Dogs have state (name, color, breed, hungry) and behavior (barking, fetching, wagging…