Bogdan Floares
New Coder
What is a cpp class an how does it work. In java and c# a class(marked as public) is pretty much just a source file, or a public class is associated with a source file, for example:
Program.java:
Or
Program.cs:
Or I can have some not public classes inside another class or at the same level with the public class and use them as instances or use them directly if they have fields or methods marked static. What I'm trying to stay is that I understand the working of classes in java and c#. However in c++ the classes seem to work completely different.
Program.java:
Java:
public class Program{
}
Or
Program.cs:
C#:
public class Program{
}