the custom class is not extending 2 classes ,your base class is extending the Object class , yourcustom class extends the base class