Atulya Panda
Is it possible to override private virtual methods?
Posted by Atulya Panda in C# Language on Nov 26, 2012
  • 1
  • 7
  • 4338
Do you know the answer for this question? Post it below.
Guest
Posted by Anupam Singh on May 13, 2014
  • 0

Hi Atulya,
Private virtual methods cannot be declared in the C# language. So no question comes to override i think.Seems interviewer was tweaking you :).

Posted by Neeraj Negi on May 01, 2014
  • 0

as it is not possible to inherit private methods from parent class you cant override it.

Posted by Prasenjit Dey on Aug 05, 2013
  • 0

No. It cannot inherited from other class due to private keyword

Posted by JAGAN reddy on Apr 21, 2013
  • 0

no u cant

Posted by keerthi rakasi on Feb 28, 2013
  • 0

No.And also the default access specifier in abstract methods is public.

Posted by Nehal Thakkar on Dec 02, 2012
  • 0

No

Posted by Nehal Thakkar on Dec 02, 2012
  • 0

No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access.


Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS

PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2014© C# Corner. All contents are copyright of their authors.