Computer Applications
Consider the below picture and choose the correct statement from the following:

Objects & Classes
1 Like
Answer
Fruit is the class and Apple, Guava, Orange are objects.
Reason — In object-oriented programming (OOP), a class is a blueprint or template that defines the properties and behaviours (methods) of objects. An object is an instance of a class that holds specific data defined by the class.
In this case:
- Fruit represents the class because it defines the general properties, and methods common to all fruits (e.g., colour, taste, season, etc).
- Apple, Guava and Orange are specific examples or instances of fruits making them objects created from the Fruit class.
Answered By
1 Like
Related Questions
Consider the below picture and choose the correct statement from the following:

- Polygon is the object and the pictures are classes
- Both polygon and the pictures are classes
- Polygon is the class and the pictures are objects
- Both polygon and the pictures are objects
Assertion (A): A car can be defined as a real world object that possesses some characteristics and behaviour.
Reason (R): Each real world object may contain some characteristics but not behaviour.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.
Creating an object of a class is also referred to as:
- Initialisation
- Creation
- Formation
- Instantiation
Name the feature of Java depicted in the below picture.

- Data Abstraction
- Polymorphism
- Class and Objects
- A set of animals