Constructor and encapsulation