Array Constructoroverloading

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Exercise for Arrays, Constructor Overloading

Exercise For
Array & Constructor Overloading

© 2020 NTT DATA, Inc. | Proprietary and Confidential | Month DD, YYYY 1
Exercise for Arrays, Constructor Overloading

1) Write a program to calculate the average value of array elements.


2) Write a program to find the index of an array element.
3) Write a program for class employee with fields – eid, name, address.
Take user input for 5 employee details in constructor. Use
displayEmployee method to display all employee details.
4) Practice the above by clicking here.

© 2020 NTT DATA, Inc. | Proprietary and Confidential | Month DD, YYYY 2

You might also like