In Java, the class keyword is used to declare a class, for example:

class Person {
    // properties...
    // methods...
}

Class is a fundamental structure in object oriented programming. In this example, the class Person represents person in the real world.

See all Java keywords.

 

Related Topics:

 

Other Recommended Tutorials:


About the Author:

is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.



Add comment