> For the complete documentation index, see [llms.txt](https://eece.gitbook.io/mist-innovation-club-flutter-course-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eece.gitbook.io/mist-innovation-club-flutter-course-1/dart-fundamentals-1/constructor/parameterised-constructor/optional-argument-in-parameterised-constructor.md).

# Optional Arguments in Parameterised Constructor

Note: \[ ] for optional argument , { } for named optional argument &#x20;

{% embed url="<https://youtu.be/ZIAb4iuqTVY>" %}

```dart
void main() {
  
  // Optional argument in Parameterised Constructor
  
  var employee1 = Employee(1, "John", "Doe",position:"CTO", number_of_day_worked:12);

  print(employee1.id);
  print(employee1.firstname);
  print(employee1.lastname);
  print(employee1.position);
  print(employee1.number_of_day_worked);
}

class Employee {
  int id;

  String firstname;

  String lastname;

  String position;

  int number_of_day_worked;

  
  

Employee(this.id,this.firstname,this.lastname,{this. position,this. number_of_day_worked});

}


```
