Classes should be designed for inheritance to be able to take advantage of it. Having methods virtual
by default means that every function in the class can be plugged out and replaced by another, which is not really a good thing. Many people even believe that classes should have been sealed
by default.
virtual
methods can also have a slight performance implication. This is not likely to be the primary reason, however.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…