Suppose $n \ge 2$$n \ge 3$ and $X$ is a path-connected subset of $\Bbb{CP}^n$ under the manifold topology. If for every complex hyperplane $H \subset \Bbb{CP}^n$, $H \cap X$ is a degree $k$ algebraic hypersurface in $H$ (could be singular or reducible), is it true that $X$ itself is a degree $k$ algebraic hypersurface in $\Bbb{CP}^n$? This question arose when I was constructing an algebra-free definition of quardric surface (where $n=3$ and $k=2$ respectively), and I have no idea how to prove or disprove this.
Edit$1$Appendix: SinceThe $n=2$ case can be easily proved to be false as stated in the comment. However the reason might be that a "hypersurface" in $\Bbb{CP}^1$ is just a set of finite points (thus, thus no enough rigidity appears), the answer should be carefully discussed when $n=2$occurs.
Edit$2$: According to the comment a counterexample can be easily found for $n=2$, so I'm wondering if the conjecture is also false when $n>2$ I wonder whether things change in higher dimensions.