A class defines Characteristics of an object at design time. It is a blueprint of an object.

• Fields or Properties or variables
• Operations or Methods or functions
For example properties of a car class are
• Color
• Number of doors
• Model
Methods of a car class are
• on()
• off()
• turn()

public class Car{

    public String color;
    public int numberOfDoors;    // these are the properties
    public int model;

    public void on(){

    public void off(){          // these are the methods

    public void turn(){

Naming Convention For Class

Class names should be nouns, in mixed case with the first letter of each internal word capitalized.

For example

JavaMahbub, HabaMahbub, Mahbub  etc


Naming Convention For Properties

Internal words start with capital letters. Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed.

For example

int i, int j, String kiHolo etc


Naming Convention For Methods

Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized.

For example

go(), jojo(), goJojo() etc



Want to know more ?

CamelCase (camel case or camel-case), also known as medial capitals, is the practice of writing compound words or phrases in which the elements are joined without spaces, with each element’s initial letter capitalized within the compound and the first letter either upper or lower case—as in “LaBelle”, BackColor, “McDonald’s”, or “iPod”. The name comes from the uppercase “bumps” in the middle of the compound word, suggestive of the humps of a camel. The practice is known by many other names.

Original Post