forked from RaviRamDhali/programming-procedure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Class-naming
34 lines (31 loc) · 833 Bytes
/
Class-naming
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
initialize
attribute
type
helper
collection
converter
handler
info
provider
exception
service
element
manager
node
option
factory
context
item
designer
base
editor
##Constructor##
1.Constructor are used to initialize the state of object,where as method is expose the behaviour of object.
2.Constructor must not have return type where as method must have return type.
3.Constructor name same as the class name where as method may or may not the same class name.
4.Constructor invoke implicitly where as method invoke explicitly.
5.Constructor compiler provide default constructor where as method compiler does't provide.
##Factory pattern##
[creational pattern] factory's sole purpose is to create objects
##Strategy pattern##
[operational pattern] strategy's sole intent to is to provide a mechanism to select different algorithm