Can we make sealed class private?
Can we make sealed class private?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anil JhaPosted Jul 3, 2017, 7:55 AM
Satyaprakash SamantarayPosted Jul 3, 2017, 6:55 AM
Vivek KumarPosted Jun 20, 2017, 8:59 AM
Sivasankar GorantlaPosted Jun 20, 2017, 8:05 AM
Rajkiran SwainPosted Jun 20, 2017, 5:36 AM
There is having some differences between private class and sealed class.
+ Private class usually used on inner class, that don't want to external to seeing it, it is created the closure.
For example,
+ Sealed class is meaning: you can't inherit from it, it is a finally class in inherited hierarchy (leaf node).
For examples, in .NET 2.0, Microsoft built HttpContext is a sealed class, and in .NET 3.5 they are wrapper it became HttpContextWrapper for Unit Testing it.
That is my knowledge about 2 of its. If it have any problems, you can post at here, and we shall discuss later.
Naveen BishtPosted Jun 20, 2017, 12:23 AM
Alok TripathiPosted Jun 19, 2017, 11:32 PM
Dharmraj ThakurPosted May 8, 2017, 1:44 AM
Satyendra PatelPosted May 5, 2017, 11:48 PM
Ramesh BarikPosted May 5, 2017, 11:35 PM
Khaja MoizuddinPosted May 5, 2017, 11:48 AM
Kaushal ParikPosted May 5, 2017, 9:46 AM