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

Answer Posted / rajni

yes it is possible for method not to inherit make it final.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you name a variable in c#?

594


Why do we need static in c#?

597


What is the keyword used to prevent a class from being inherited by another class?

769


What is boxing & unboxing?

659


What is use of abstract class in c#?

588






What is serialization and deserialization in c# with example?

547


What is the default boolean value in c#?

575


To catch any possible exception What is the C# syntax written ?

615


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

2469


Can I define a type that is an alias of another type (like typedef in c++)?

651


What are the namespace level elements?

581


What is sqldataadapter in c#?

568


What are the value types in c#?

605


What is hash c#?

582


What is a trace and asset? Explain some differences?

809