Interviews4 answers
How do you prevent a class from being inherited? a. By making the class as Private. b. By making the class as private and using sealed keyword. c. By making the class as protected and using sealed keyword. d. By making the class as Sealed.
4 Answers
By making the class as Sealed.
Ina GuptaPosted Oct 3, 2018, 7:43 PM EDT
a,d
sunil singhPosted Oct 22, 2016, 1:04 PM EDT
d. By making the class as Sealed.
Ritesh SinghPosted Aug 4, 2016, 9:50 AM EDT
Ans: b
Rajesh SinghPosted Dec 22, 2015, 3:00 AM EST


