Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Kita deklarasikan struct Persegi
- /// </summary>
- struct Rectangle
- {
- private int m_width;
- private int m_height;
- /// <summary>
- /// kita buat properties width
- /// </summary>
- public int Width
- {
- get
- {
- return m_width;
- }
- set
- {
- m_width = value;
- }
- }
- /// <summary>
- /// kita buat properties height
- /// </summary>
- public int Height
- {
- get
- {
- return m_height;
- }
- set
- {
- m_height = value;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment