Can we have a private virtual method ?

Answer Posted / edward

yes... we can have private virtual method and will not give
any compile time/runtime error. but there is no use of it.
we could not call the method from out side of the class

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the oops and benefits of oops programming?

558


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1795


Are polymorphisms mutations?

705


What is class and object in oops?

613


What is encapsulation c#?

603






How is polymorphism achieved?

587


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2764


What is polymorphism used for?

577


What is abstraction in oop with example?

647


Can we define a class within the interface?

555


What are the three parts of a simple empty class?

1462


When not to use object oriented programming?

572


State what is encapsulation and friend function?

703


when to use 'mutable' keyword and when to use 'const cast' in c++

1651


what's the basic's in dot net

1742