Ask Question
20 March, 04:30

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

True

False

+3
Answers (1)
  1. 20 March, 07:24
    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?
Find an answer to your question ✅ “In an inheritance situation, you may not pass arguments to a base class constructor. True False ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers