Print the average of three numbers entered by the user by creating a class named 'average' having a function to calculate and print the average without creating any object of the average class.
A) avg(num1, num2, num3)
B) calculateAverage(num1, num2, num3)
C) average.calculate(num1, num2, num3)
D) average(num1, num2, num3)