3. Which of the following statements best describes a property of object-oriented programming (OOP)?
(A) Inheritance allows a class to inherit attributes and methods from another class, promoting code reuse and extensibility.
(B) Polymorphism enables objects of different classes to be treated as objects of a common superclass, facilitating dynamic method invocation.
(C) Encapsulation restricts access to certain components of an object, ensuring data integrity and hiding implementation details.
(D) Abstraction allows the creation of abstract classes and interfaces, providing a blueprint for derived classes to implement.
(E) Functional programming is a key feature of OOP, emphasizing the use of pure functions and immutable data structures.

答案:登入後查看
統計: 尚無統計資料