When to use an Inheritance?

 Posted by Vishalneeraj-24503 on 3/1/2015 | Category: Visual Studio Interview questions | Views: 1073 | Points: 40
Select from following answers:
  1. When our inheritance hierarchy represents an "is-a" relationship and not a "has-a" relationship.
  2. When we can reuse code from the base classes.
  3. When we need to apply the same class and methods to different data types.
  4. When we want to make global changes to derived classes by changing a base class.
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response