I created a component in c++. What's the difference between adding class before the component and not adding class?

Thank you for your reply. Is the function the same as this one?

class USceneComponent;

Uclass()
class MYTOWERDEFENSE_API ATowers : public ARuleOfTheCharacter
 {
     GENERATED_BODY()
 
     UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "BaseAttribute", meta = (AllowPrivateAccess = "true"))
      USphereComponent * AttackRange;
 }