Which of the following is a characteristic of object-oriented design?

Which of the following is a characteristic of object-oriented design?

a) Encapsulation
b) Linear process
c) Procedural flow
d) Separate concerns

Answer:

a) Encapsulation

Explanation:

Encapsulation is a key characteristic of object-oriented design (OOD). It refers to bundling data (attributes) and methods (functions) that operate on the data into a single unit called a class. Encapsulation helps protect the internal state of an object and restricts direct access to it.

Other key principles of OOD include inheritance (allowing classes to inherit properties from other classes) and polymorphism (allowing objects to be treated as instances of their parent class).

Object-oriented design promotes reusability, flexibility, and maintainability in software development.

Reference:

Software Engineering MCQ (Multiple Choice Questions)

Scroll to Top