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

Objects & Classes
2 Likes
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
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
Your friend has tried to write a program using a class as shown below:
............... class Friend_list // Line 1 { void disp_name() { System.out.println("Amit Kumar"); } void disp_address() { System.out.println("Lane B: 3/1, Akash Ganga"); System.out.println("Mayur Vihar, New Delhi"); } public static void main() { Friend_list myself = new ...............(); // Line 2 ................disp_name(); // Line 3 myself................();// Line 4 } }Due to confusion, he could not complete the above program. He left blank spaces in some of the statements marked with Line 1, Line 2, Line 3 and Line 4 that are to be filled with appropriate keywords/objects.
Help your friend to complete his program by answering the following questions:
(a) Name the access specifier that should be filled in the statement marked with Line 1.
(b) Name the element to be filled in the statement marked with Line 2.
(c) What should be filled in the statement marked with Line 3?
(d) What function name should be filled in the statement marked with Line 4?
Read the following text, and choose the correct answer:
They are the real world or software world entities which possess different characteristics and common behaviour described within the class.
Which of the following concept of Object Oriented Programming describe?
- Class
- Object
- Quality
- Category