Jump to content

Java class page needs a correction


Kimberly

Recommended Posts

On this page https://www.w3schools.com/java/java_classes.asp it says:

"In Java, an object is created from a class. We have already created the class named MyClass, so now we can use this to create objects.

To create an object of MyClass, specify the class name, followed by the object name, and use the keyword new:"

However as you could see the actual code example shows a class with the name Main. This can be confusing to people that are new.

In the C++ page it is done correctly. It has the same verbage as above and the code shows a class with the name MyClass https://www.w3schools.com/cpp/cpp_classes.asp

Thank you for all the great work and easy to follow lessons, the site has helped me a lot. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...