ICSE Class 10 Computer Applications Question 8 of 25

Class as Basis of All Computation — Question 8

Back to all questions
8
Question

Question 8

What is a method ? Can there be objects without having any methods ?

Answer

The behaviour of an object is described through associated functions called methods.

In Java, every class is a subclass of Object class and so, all objects inherit the methods of the Object class. Thus, it is not possible for objects to be without any methods.