Virtual functions are functions whose behavior is known at runtime rather than at compile time.
Due to this behavior, it can be said that virtual functions implement Polymorphism. In other words,
preceding a function name with virtual in the base class means that that function is intended to be
re-implemented (overridden) in the sub-class.
Due to this behavior, it can be said that virtual functions implement Polymorphism. In other words,
preceding a function name with virtual in the base class means that that function is intended to be
re-implemented (overridden) in the sub-class.
Comments
Post a Comment
https://gengwg.blogspot.com/