Posts

Showing posts from 2025

Java - Class, Object, String

Understanding Class, Object:   Concept - Consider the following analogy: A  class  is a blueprint to make  object s. For example, suppose you have a class House. The class House is the blueprint that explains exactly how to make a specific House object. Your own house, or your sister's house, are instances of class House - they are the concrete House objects that are made using the blueprint. So, a class is like a recipe, or a set of instructions, or a plan, that explains how to make a specific kind of object.   or you can think of a class as a 'Reference' for making the 'real' objects! Every time you look at the reference/guide before you create an object in existence as it serves you the basic information of 1. What actually constitutes an object? Other way, what will the object be having with it? If it is a House object, it would be having doors, windows etc., If it is a Person object, it would be having eyes,ears, nose etc., -- They are called as  ...