Multiple choice technology programming languages

Which of the following cannot be inherited?

  1. private member

  2. Constructor

  3. Destructor

  4. Overloaded assignment operator

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

Constructors, destructors, and overloaded assignment operators cannot be inherited. Constructors and destructors handle initialization/cleanup specific to each class. The assignment operator must be defined per class to handle member-specific semantics. Private members are inherited but not accessible.