I am new to swift. I was studying Inheritance. I have a method that takes in Character. Character is a super class here, and Player and Enemy are its subclasses. I would either pass Player or Enemy in the parameter of this method. How do I check which type of Character I am dealing with? Is it a Player or a Enemy?
func deadCharacter(character: Character) {}