To create a custom WebPart in ASP.NET/SharePoint, you inherit from the WebPart base class in the System.Web.UI.WebControls.WebParts namespace. Option A is incorrect because WebParts (plural) is not a valid class name. Option B is also incorrect. Option D has the wrong namespace (System.Web.WebControls instead of System.Web.UI.WebControls.WebParts).