Package drawing.letters.alphabet
Class M
java.lang.Object
drawing.letters.alphabet.M
- All Implemented Interfaces:
- Letter
This is the object "M" which implements the Letter class.
- Since:
- 2023
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddraw()Draw method which takes in an integer to call the offset method.voiddraw(int offset) Draw method which takes in an integer to call the offset method.chargetChar()This returns the character.voidoffset(int offset) Offset method which takes in an integer and is required in drawing the letter at the correct Horizontal axis.
- 
Constructor Details- 
Mpublic M()The constructor assigns the letter "M" to character.
 
- 
- 
Method Details- 
drawpublic void draw()Draw method which takes in an integer to call the offset method.
- 
drawpublic void draw(int offset) Draw method which takes in an integer to call the offset method.
- 
offsetpublic void offset(int offset) Offset method which takes in an integer and is required in drawing the letter at the correct Horizontal axis.
- 
getCharpublic char getChar()This returns the character.
 
-