-1

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~

Mohsin
  • 7
  • 2

1 Answers1

1

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.

bielu000
  • 1,826
  • 3
  • 21
  • 45
  • C++/CLI makes interacting between pure C++ and C#/VB.Net much simpler -- it certainly has it's uses. – ChrisMM Nov 15 '21 at 11:49
  • I believe that not only the C++ and C# but most of the languages that can run in CLR like Visual Basic, Pascal, Delphi – bielu000 Nov 15 '21 at 11:52