English

Name the four different features of OOPS.

Advertisements

Question

Name the four different features of OOPS.

Long Answer
Advertisements

Solution

  1. Encapsulation: It is the process of wrapping data and methods together into a single unit called a class. It helps in data security and protection.
  2. Inheritance: It is the process by which one class acquires the properties and methods of another class. It promotes code reusability.
  3. Polymorphism: It is the ability of an object or method to take different forms. It allows the same method name to perform different tasks.
  4. Abstraction: It is the process of hiding unnecessary implementation details and showing only the essential features to the user. It reduces complexity and makes programs easier to understand.
shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Programming in Java (Review of Class XI Sections B and C) - EXERCISE [Page 98]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 3 Programming in Java (Review of Class XI Sections B and C)
EXERCISE | Q 5. | Page 98
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×