Luckily, it’s pretty easy on Mac and even easier than resetting your Windows account password.
If you’ve forgotten your password, you can’t really access your Mac, but don’t worry, you can reset it. If you don’t use a password manager or had not noted on your own yet, you will most likely forget which is hard to remember those complex passwords. Here is How to Reset Forgotten Password of macOS Mojave Virtual Machine. Even if have those recovery options, it’s pretty hard for you to do as a Windows user. This is where you will get stuck if you don’t have logged in with your Apple ID and set up extra layers of recovery. When you are on the login screen, you realize you do not remember your password even after seeing the hint. The next morning, you wake up, switch on your Mac and wait for the login page to appear. So you have set up your Mac and a password to protect it.