1.Optional and Named Parameters calls these methods can optionally not specify some of the arguments, thereby accepting the default values. when you call a method, you can specify arguments by using the name of their parameters. When you pass argumen…