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.