Is there any "public class" or "private class" in C++?

  access-modifiers, c++, private-class, public

I searched it up and found out that there’s no such thing as "public class" in C++ but it can be used in Java and C#.
A Youtuber used a public class and the video was about some other topic so they didn’t explain it.
Here’s the code they typed…
public class in C++

I’m confused now so please clarify. Thank you~

Source: Windows Questions C++