मराठी

What is an Object?

Advertisements

प्रश्न

What is an Object?

दीर्घउत्तर
Advertisements

उत्तर

An Object is an instance of a class in Object-Oriented Programming (OOPS). It is a basic unit of a Java program that represents a real-world entity. An object contains data members (attributes) and member functions (methods) that define its properties and behaviour.

Every object has three main characteristics:

  1. State: Represents the properties or data of an object.
  2. Behaviour: Represents the actions performed by an object.
  3. Identity: Represents the unique identification of an object.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: Objects - EXERCISE [पृष्ठ १०६]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
पाठ 4 Objects
EXERCISE | Q 1. (i) | पृष्ठ १०६
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×