Creation of default constructor and constructor with length as  parameter