Defining Input And Output Methods For TextualMessage Class