/constructor.dart Secret
Created
June 30, 2022 17:16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///File ini adalah contoh pendefinisian sebuah class di bahasa pemrograman Dart | |
///Dibuat untuk geekasmedia.blogspot.com | |
class Contoh{ | |
//constructor | |
Contoh(parameter){ | |
print("Contoh"); | |
} | |
} | |
void main(){ | |
//instance class | |
Contoh cth = Contoh(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment