हिंदी

Main class by default inherits another class. Explain the given statement. - Computer Applications

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Encapsulation and Inheritance - EXERCISES [पृष्ठ ४४६]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 8 Encapsulation and Inheritance
EXERCISES | Q V. 9. | पृष्ठ ४४६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×