Can you override private virtual methods?

Answer Posted / swapna

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

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why would you use untrusted verification?

697


can you create a function in c# which can accept varying number of arguments

790


What is serialization and deserialization in c# with example?

646


What do you mean by parsing and how to parse a date time string in c#?

729


What is a scope in c#?

642


What is the ouput of the following program?

718


What is c# entity framework?

647


If you donot specify an access modifier for a method, what is the default access modifier?

730


How do I convert a string to an int in c#?

697


What is difference between override and new in c#?

701


Why do we need generics?

683


How can you use abstract class and interface?

728


Explain the process of inheriting a class into another class?

715


Is list a collection c#?

717


What is the base class in .net from which all the classes are derived from?

709