Hello SO,
I'm very new to OOP and am trying my hardest to keep things strictly class based, while using good coding priciples.
I'm a fair ways into my project now and I have a lot of general use methods I want to put into an utilities class. Is there a best way to create an utilities class?
public class Utilities
{
int test;
public Utilites()
{
}
public int sum(int number1, int number2)
{
test = number1+number2;
}
return test;
}
After creating this Utilities class, do I just create an Utilities object, and run the methods of my choosing? Do I have this Utilities class idea correct?