How can you prevent classes to be inherited?

Answer Posted / lucky

make the constructor private.

Is This Answer Correct ?    0 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c# support parameterized properties?

511


What is a struct in C#?

555


Is a char?

454


What are the fundamental principles of oo programming?

496


Which of the following operations can you not perform on an ado.net dataset?

510






What are logical operators in c#?

522


Why is it important to override gethashcode when equals method is overridden?

555


How is lazy loading achieved?

493


What is boxing & unboxing?

564


Explain acid rule of thumb for transactions in c#.

518


What is constants in c#?

420


What is an Interface in C#?

540


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

2393


Is int a class in c#?

497


What is a framework in c#?

466