I would like to know how the GetAmmoType() function in ShooterWeapon.h in the learning project "Shooter Game" actually works

Yeah but the question is how a code like this:

virtual EAmmoType GetAmmoType() const
	{
		return EAmmoType::EBullet;
	}

can give me not only EBullet but olso the other EAmmoType members