Is the class marking final and makes each feature final?

As the title says, I am wondering if make the final class and give the compiler speed optimizations, I need to mark the functions as final as well, or automatically become final ...

+3


source to share


1 answer


final

applied to a class makes it not a subclass, so under no circumstances should you override any function or property, because you need to subclass for that. So yes, it indirectly applies to all of its members.



+3


source







All Articles