Look at Class representation in UML Class Diagram

In class diagram, a class is represented by a solid rectangle. It is divided into three sections and each one represent below details of the class in order:

1) Class Name [usually starts with Capital letter]
2) Attributes/Properties of the Class
3) Methods/Operations present in the Class.

Visibility of the attributes/methods is represented by below symbols preceding the name:
1) + : Implies public visibility.
2) - : Implies private visibility.
3) # : Implies protected visibility.

Method parameters and return type are represented in below manner:

GetName(id: int, state: string) : string

A sample class diagram can be found below:

ClassDiagram.bmp