Hai all,
what the use of New keyword rather then creating class instance in c#, let me know it,if some one know that.
New key word Use
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
EhteshamRank #3,979 · 374 reputationPosted May 24, 2012, 1:22 AM EDT
public class BaseClass
{
public void Method()
{
}
}
public class DerivedClass : BaseClass
{
new public void Method()
{
}
}
VulpesRank #55 · 29.2K reputationPosted May 24, 2012, 2:02 AM EDT