3 Cara Penulisan Object di Bahasa Pemrograman Java
package com.arifnrmdn.oop;
public class Person {
public static void main(String[] args) {
//cara pertama
var person1 = new Person();
//cara kedua
Person person2 = new Person();
//cara ketiga
Person person3;
person3 = new Person();
}
}
Comments
Post a Comment