Method @Override

Implemented the @Override interface for methods.