public class Mobile {  
    public String brand;  

    // Constructor (Jab object create hoga, yeh chalega)
    public Mobile(String brandName) {  
        this.brand = brandName;  
    }  

    // Instance Method
    public void showBrand() {  
        System.debug('Yeh mobile ' + this.brand + ' ka hai!');  
    }  
}  

// Object bana rahe hain  
Mobile m1 = new Mobile('iPhone');  
Mobile m2 = new Mobile('Samsung');  

// Instance method ko call kar rahe hain  
m1.showBrand();  // Output: Yeh mobile iPhone ka hai!  
m2.showBrand();  // Output: Yeh mobile Samsung ka hai!  
