In object-oriented web applications, which concept allows new classes to reuse properties and methods from existing classes?

13 views
  • Encapsulation
  • Inheritance (Correct Answer)
  • Polymorphism
  • Aggregation

Explanation

Inheritance enables new classes to extend existing ones, promoting code reuse and maintainability in web applications, unlike encapsulation or polymorphism which serve different purposes.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs