Java- How to use Abstract class
问题 So I was studying Abstract class in java, and when I was reading other people's codes I saw the following: public abstract class Message implements Serializable, Comparable<Message> { //stuff in this class } In another class under the same project, the programmer declared a method as follows: public void notifyMessage(Message msg, HostType sourceType) { //some stuff in this method } Notice in the notifyMessage declaration, variable msg is of type "Message". I thought all abstract classes