Can you prevent your class from being inherited and
becoming a base class for some other classes?
Answer Posted / shantanu singh patel
Yes you can make it by using Sealed keyword.
No when your class in Sealed you cant inherit the class
then the question of base class for some other class is not
significant.
Thanks and Regards,
Shantanu
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a function and a method?
What is web forms in c#?
What are c# i/o classes? What are the commonly used i/o classes?
Write the syntax for catching an exception in c#?
What is the reason behind the invention of c#?
Why interface is required?
Asha buys 16 Chocolates for rs 12 and 24 chocolates for rs 20, if she sold them 30 chocolates for rs 30 then what is the Gain/Loss percentage? Gain(700/19 %) Loss(700/19 %) Gain(500/19 %) Loss(500/19 %) If one person ate 100 grapes in 5 days and 6 more each day from starting, what was the no of grapes he ate on first day? 6 8 10 7 If seven men P, Q, R, S, T, U, V parked his car, P and Q something like that. 6 student J, K, L, M, N, O went for picnic in 2 batches, K and L have to go together, M and O do't go together, if O and L go in one batch then which of these combination will be wrong. Jmnp Jklo klop JKLO a boat can go upstream and down stream, if it goes 5/2 times of downstream at the speed of 6 kmph then what will be the speed of upstream? 15 KMPH 12 KMPH 10 KMPH 11 KMPH A, B, C, D, E sitting on a table, A sits 2 seat left from B and C sits 2 seat right from B then what will not be the combination ACDE
What do you mean by for each loop?
if a method is marked as protected internal who can access it?
What is for loop in c#?
Explain About Virtual functions and their use.
What language do desktop applications use?
Explain what are three test cases you should go through in unit testing?
What is boxing and unboxing in c#?
What are methods in C#?