Would anybody know of some reading information explaining the fundamentals of using a class type as a parameter for a method. For example something like public int countByDate(Date date).... Where the data type Date in the parameter is referring to a different class. Just not too sure what is going on here because I'm use to seeing parameters in methods with primitive data types. (int, char, float etc).
posted 4 years ago
I presume by class type you mean reference type? I thought at first you were planning to pass an instance of the Class class.
It should be in the basics of the Java Tutorials.