SHARE
TWEET

Class Persegi

FrozenFly Oct 23rd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. open class Persegi(private var sisi: Double) {
  2.  
  3.     var luasPersegi : Double = 0.0
  4.     var kelilingPersegi : Double = 0.0
  5.  
  6.     open fun mencariLuasPersegi() {
  7.         luasPersegi = sisi*sisi
  8.         kelilingPersegi = sisi*4
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top