We have two class with same method. When create a object one class and is assigned the another class object.