ASMR CODING | password generator in Java (Part 2), typing sounds
This is an ASMR styled programming / coding video where I code several programs, small and large scale in Java while giving you the tingles with typing and whispering sounds..
In this video I generate a simple password generator app in Java. This is part 2 and in this part I make a Java class that represents a password generator. The password will have certain fields to store the generated password itself and the desired length of the password. The generator uses a randomizer that picks a character from a string of all the possible characters and iterates, picking random characters until the password is generated at its desired length.
In this part, I implemented classes that represent strong password generators and weak password generators, applying a concept called Inheritance in object oriented programming. It's where I can create derived classes that share common attributes like passwordLength and password and that they inherit methods such as getPasswordLength(), getPassword() and generate(); in this case a strong/weak password generator is a password generator. The only difference is that I override certain algorithms/methods that do the generating as well as apply the length restriction on strong password generators.
NOTE: One thing I pointed out was that I called the setter and getter that I added last minute multiple times at one point which was not what I was supposed to do. These methods are also inherited in which I should have called the inherited ones, and not from the base class.
Note that the string building approach I implemented was similar to that where I used to create the typing simulator console game in a video I made earlier.
Please give this video a thumbs up if you have gotten your ASMR tingles.
Part 1: https://youtu.be/m7eYjuUs6ug