If I have a class called Sales, which has only static attributes and methods: - What kind of constructor should I write for this class? - How can I make calls to the methods and attributes of this class inside of its own scope?
You can use self::method();
operator to call it's own methods and attributes..
Constructor
private function __construct()
{
// Your "heavy" initialization stuff here
}
You can use self::method();
to call a static method from within the same class.