Created
April 6, 2023 10:54
-
-
Save yasriady/e87da5fc1daa2ef16aa4cb2e99f3d9e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package id.yasriady.dasaroop.belajaroop; | |
/** | |
* | |
* @author Dedy Yasriady | |
*/ | |
public class BelajarOOP { | |
public static void main(String[] args) { | |
BelajarOOP obj =new BelajarOOP(); | |
obj.myFunc(); | |
} | |
private void myFunc() { | |
// Mulai membuat kode | |
// ... | |
Person siswa = new Person(); | |
siswa.nama = "Eko"; | |
siswa.alamat = "Jl.Sudirman 123"; | |
siswa.hobby = "Sepeda, memancing, baca buku"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment