Advertisements
Advertisements
प्रश्न
Main class by default inherits another class. Explain the given statement.
लघु उत्तरीय
उत्तर
In Java, the Object class acts as the basic class for all other classes. This class is included in the default package of Java, java.lang. For this reason, we do not need to explicitly inherit this class. However, every class in Java inherits the Object class implicitly.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?