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

Answer Posted / vimal

Use 'Sealed' Keyword with Method

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

602


Why is static constructor called first?

550


What is bitwise operator in c#?

584


Can we have only “try” block without “catch” block in c#?

540


What is a web service in c#?

657






What is array class in c#?

537


What is _layout cshtml?

562


What is the difference between gettype and typeof in c#?

530


What is the difference between c and c# programming?

513


Explain what is an interface in c#?

594


How to properly clean up excel interop objects?

592


What does dbml stand for?

637


Is a char?

535


What do you mean by generic class in c#?

575


What is asax file in c#?

641