Constructors
special method
called at creation of instance (new)
no return type
name is same as class
called once
puts instance in correct state (initialisation)
must be instance method
can be public, protected, private
can be abstract, final
can take parameters
default constructor
Previous slide
Next slide
Back to first slide
View graphic version