You will need to use at least 1 additional class other than the class with the main method. Perhaps the class would be how you instantiate each character for the array? The class needs to contain at least 3 different private members (variable/attribute) and public getter and setter properties for those members. These could be name, points, whether the character is good or evil, etc
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
You will need to use at least 1 additional class other than the class with the main method. Perhaps the class would be how you instantiate each character for the array? The class needs to contain at least 3 different private members (variable/attribute) and public getter and setter properties for those members. These could be name, points, whether the character is good or evil, etc
Step by step
Solved in 2 steps