Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7669823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:40:56+00:00 2026-05-31T15:40:56+00:00

The examples that I have come across for when new makes sense involve maintenance

  • 0

The examples that I have come across for when “new” makes sense involve maintenance situations where the sub class is inheriting from a base class in a library, and a new version of the library adds a method with the same name as one that has been implemented in the sub class. (See: Brittle Base Classes)

What I am wondering is if there are instances where the use of “new” is a good design choice (rather than something that can become necessary in maintenance). One thing that can’t be done with override is changing the return type of a method/property while keeping the name the same, but I question whether it’s ever a good design choice.

public class FruitBasket {
    public int Weight { get; set;}
    public List<Fruit> Fruits {get; set;}
}

public class AppleBasket : FruitBasket {
    public new List<Apple> Fruits  {get; set;}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:40:57+00:00Added an answer on May 31, 2026 at 3:40 pm

    One situation I know of is that you have to use new in .Net WinForms if you are databinding to an interface that inherits from another interface, and you want to bind to members in the base interface.

    For example if you have

    public interface IOne
    {
       int ID {get;set;}
       string Code {get;set;}
    }
    
    public interface ITwo : IOne
    {
       DateTime CreatedDate {get;set;}
    }
    

    and you databind a control to a ITwo object, then you won’t be able to see the ID or Code properties unless you add them to the ITwo interface. Of course you don’t have to use new, but it is recommended.

    Other than that, I have only ever used it in maintenance mode, i.e. once an app has shipped and new requirements necessitate such a change.

    HTH,
    Dean.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm brand new to MVC and have just come across a scenario that I
I have code examples from some of my previous work that help me to
I have a few tables that I've defined like the below examples: class TableA
This is a particular problem that I have come across many times, but I
I'm just new to the ipad development world, and have come across the Instapaper
fairly new Android developer here. I've come across a strange problem that I'm not
I've come across a problem when mocking methods that have view bounds on the
I have come across a little dilemma that has stumped me for the last
I am somewhat new to MySQL (come from MS SQL) and have recently come
I have come across various situations, where I want to store some formatted data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.