i tried to implement Ucablecomponent header file :#include “CableComponent.h” but the engine give me an error

You have not provided sufficient information for anyone to answer your question. You need to show the code where you are using it, and what errors you are getting

add “CableComponent” to .Build.cs file.

using UnrealBuildTool;

public class ShootEmUp : ModuleRules
	public ShootEmUp(ReadOnlyTargetRules Target) : base(Target)
		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "CableComponent" });

		PrivateDependencyModuleNames.AddRange(new string[] {"CableComponent"});
        PrivateIncludePathModuleNames.AddRange(new string[] { "CableComponent" });

        // Uncomment if you are using Slate UI
        // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });

        // Uncomment if you are using online features
        // PrivateDependencyModuleNames.Add("OnlineSubsystem");

        // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true