Java reference type

From , 2 Years ago, written in Java, viewed 212 times.
URL https://pastebin.vip/view/b571ecea
  1. public class MyDate{
  2. private int day=8;
  3. private int month=8;
  4. private int year=2008;
  5. public MyDate(int day, int month, int year){}
  6. public void print(){}
  7. }
  8. public class TestMyDate{
  9. public static void main(String args[]){
  10. MyDate today = new MyDate(23,7,2008);//这个 today 变量
  11. //就是一个引用类型的变量
  12. }
  13. }//源代码片段来自云代码http://yuncode.net
  14.                        

Reply to "Java reference type"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website