top of page
Click here to go to the home page of AskTheCode.

Is it possible to restrict Inheritance in Java?

Random Post | #AskTheCode

Yes, it is. You can restrict Inheritance by:

a. Using the final keyword.

b. Making the method final.

c. Using private constructor.

d. Using (//) Javadoc comment.


Recent Posts

See All

Komentar


bottom of page