| Can we restrict inheritance for a class?
There are four things after that we can restrict inheritance for a class
(1)First is by using the final keyword we can restrict inheritance.
(2)And another thing is that we can make all methods as final then we cannot override that
(3)Third is by using private constructors
(4)Fourth is by using the javadoc comments and to do that we use("//") | | |