hi, new to these forums, sorry if this is in the wrong place.
so im almost done with my code, all i need to do now is code a Main method to test the Person class. Declare an array in the Main method that stores instances of the Person class as elements. Demonstrate the functionality of the Person class using the array.
How do i test the person class using arrays? I have it set so that only the derived class can directly get/set it's inherited state variables and prevent outside classes from directly getting/setting them.
Remember Main method defines and initializes an array of objects from the base class. array will test the functionality of the class.
heres the code
---------------------------------------------------------------------------------------------
using
public
{
name = n;
address = a;
}
age = aG;
~Person() { }
:
hisRole = role;
movie = movieName;
name =
address =
age = (20);
let me know if this makes any sense!