Class

Most of the times, people forget to use final in a class. If you don’t extend the class – add final. This will allow for you to build faster, as compiler will not look for class extensions.

// Don't add final, unless you plan to extend the class
class AuthenticationService {
		// Implementation
}

// Do add final, if you are not extending
final class AuthenticationService {
		// Implementation
}

Leave a Comment