:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Microsoft Related >> C Sharp


 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1443)
 VB.NET interview questions  VB.NET Interview Questions (150)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
Can you override private virtual methods?
 Question Submitted By :: C-Sharp
I also faced this Question!!     Answer Posted By  
# 1
No, moreover, you cannot access private methods in
inherited classes, have to be protected in the base class to
allow any sort of access.
Is This Answer Correct ?    27 Yes 6 No
# 2
WE can not use private access modifier for VIRTUAL,INTERFACE
and also we can not inherit private methods or properties
in inherited classes.
Is This Answer Correct ?    14 Yes 2 No
Payal Mehta
# 3
we should not use Private Access Specefier for
Is This Answer Correct ?    14 Yes 4 No
# 4

virtual or abstract members cannot be private
Is This Answer Correct ?    11 Yes 3 No
# 5
Is This Answer Correct ?    10 Yes 4 No
# 6
we cant use private access modifier for VIRTUAL, INTERFACE
Is This Answer Correct ?    7 Yes 2 No
Asim Bukhari
# 7
Is This Answer Correct ?    1 Yes 0 No
# 8
virtual or abstract members cannot be private.

Ex: error occurs during the static compilation phase, which
means that no program that declares a private virtual method
will ever be executed in any way.
class A
private virtual int Test()
return 1;

class Program
static void Main()

Compile-time error

Error 1
'A.Test()': virtual or abstract members cannot be private
Is This Answer Correct ?    0 Yes 0 No
# 9
Is This Answer Correct ?    12 Yes 16 No
Bk Sahoo
# 10
first let me know wht is the benfit specifying virtual
method as private.
Is This Answer Correct ?    4 Yes 11 No

Other C Sharp Interview Questions
  Question Asked @ Answers
how to store the value in textbox using delegates if we have two user control. the value will be called from one user control to another user control. Loading and unloading will be done through delegates.   1
why doesnot support prcedures and why it supports structs,functions   1
What are the two keywords used to pass a variable by reference in c#? IBM 2
Can u create multiple threads of execution ? IBM 1
can we create an empty interface with no definitions? If so, how it should be called in the class? IBM 3
what is the main differnce between const,readonly and static CDAC 3
6. If we assign a value in textbox on Page_UnLoad event, will it display? Mphasis 2
can we declare a variable by name "this" in a class? Please explain? IBM 3
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?   2
What is Interface and Abstraction (in real time scenario) HCL 4
If all code is written in a try block and write a catch block with Exception type Exception .In that scenario will all the exceptions catched by that catch block? or any exceptions which will not be caught? Honeywell 3
Difference between direct type casting and using "as" keyword? TCS 1
For more C Sharp Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::