is it possible to inherit a class but methods declared in
the class should not be inheritable i possible how?

Answer Posted / arunkumar

s it is possible by doing Sealed keyword to the method in
first class

Is This Answer Correct ?    21 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between properties and indexer in c#?

432


How does foreach loop work in c#?

478


What is the symbol used for in c#?

491


Explain the difference between abstract class and interface in .net?

468


What is meaning of type safety in c#?

460






What does break do in loop?

488


How C# 4.0 supports dynamic programming language?

567


What is the difference between “dispose” and “finalize” variables in c#?

482


What is the advantage of dependency injection?

494


Are value types sealed?

511


How do you specify a custom attribute for the entire assembly (rather than for a class)?

521


Why static constructor is parameterless in c#?

593


What is the difference between protected and internal in c#?

459


What are the different types of assemblies available and their purpose?

500


Describe the ways of cleaning up objects in c#.

517