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

642 Views Asked by At

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~

1

There are 1 best solutions below

2
bielu000 On

It comes from CLR. You can read something about it here: CLR

Microsoft has its own version of C++ designed for Common Language Runtime.

I wouldn't recommend learning it, rather stick to the standard version of C++ unless you work in a very specific, Microsoft environment, and basically you need to use it.