Computer Science - Object Oriented Programming Using C++ - Discussion


Adding a derived class to a base class requires fundamental changes to the base class

[A]. True
[B]. False

Answer: Option B


No answer description available for this question.

Sss said: (May 9, 2011)  
We can only add a derived class according to need but we can't change the properties of base class in which already exist.

Manisha said: (Mar 20, 2012)  
We derive a new class from base class, during this there is no need to change base class.

Rakhee said: (Apr 1, 2012)  
Derived class is d one which inherits its properties from base class.Base class acts as parent of derived class.Hence, while creatin a derived class base class never undergoes any change. It remains same.

Krishna said: (Jun 5, 2012)  
Acquiring the properties from base class to derived class. Base class acts as parent class, no changes are occurs in base class.

Jagadish said: (Jun 18, 2012)  
We can't change the properties of base class in which already exist.

Bimla said: (Jul 30, 2012)  
According to need we add a derived class and this derived class has some own properties and inherit all properties from its parent so no need to change.

Anjali said: (Sep 27, 2013)  
A derived class, in the context of C#, is a class created, or derived from another existing class. The existing class from which the derived class gets created through inheritance is known as base or super class.

While inheriting from base class, the derived class implicitly inherits all the members (except constructors and destructors) which it reuses, extends and modifies the behavior of the base class. The derived class overrides the properties and methods of the base class so that it represents the specialized version of base class. C# provides ability to override and hide methods of base class in derived class which makes both classes to evolve freely and maintain binary compatibility.

Aruna said: (Feb 28, 2015)  
Re-usability is the property of the inheritance. It means we can derive a new class from base class. Deriving a new class from old one is only when we don't want to rewrite code again. So there is no need for change the base class.

Ashutosh Singh said: (Jul 7, 2017)  
Inheritance uses Reusability feature. Hence to optimise a code and deriving a new class from the base class, doesn't require any modification (change). Hence it facilitates user to make modifications to the code without changing the existing one. E.G: Child inherits properties of the parent but there is no change in the properties of parents.

Hope you all understand this.

Rishi said: (Aug 11, 2018)  
We can add any derived class but it doesnot reqiure any changes in the base class.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.