```
public class CellAtt {
    private String brand;
    private long serial;
    private double price;

    public CellAtt(String brand, long serial, double price) {
        this.brand = brand;
        this.serial = serial;
        this.price = price;
    }
    public boolean Compare(Object c1,Object c2) {

    }

public class Main {
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        CellAtt c1 = new CellAtt("nokia",4536895,3600.00);
        CellAtt c2 = new CellAtt("Samsung",4536895,3600.00);
    }
}

```

I have created two objects in `main.java`.

I want to compare two object properties, `Brand` and `Price`. If brand and price are the same, it must return `true`, or else `false`. Hope I'm clear.