Ask Question
29 March, 00:23

In an inheritance situation, you may not pass arguments to a base class constructor.

True

False

+2
Answers (1)
  1. 29 March, 02:36
    0
    False.

    Explanation:

    We can pass arguments in base class constructor if there is a parameterized constructor present in the base class.

    What happens when there is a parameterized constructor present in a class? The answer is the default constructor gets deleted if there is a parameterized constructor present. Then we can only create an object with parameterized constructor and this is applicable for all classes.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In an inheritance situation, you may not pass arguments to a base class constructor. True False ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers