Homework 3 (Reflection)

Write a simple class (choose any of Java, C#, CLOS and smalltalk ), call it A (totally up to you regarding what you want to implement) which contains atleast 3 methods and two data fields (you can use any classes from previous assignments). Write a program that does the following:

1) Finds out and prints all the methods contained in A.

2) At run time, takes as input the name of the method of A to be called, and calls it on an instance of A.

3) Modifies the value of a data field of A.

4) Lets a user input the size and type of array to be created and creates it at runtime