Why reference's type is class in Java -
in java, book c = new book()
here c reference. why reference's type class name. special reason.?
book c = new book(); // c points book object. now, if declare c int, means c points int.
in java, book c = new book()
here c reference. why reference's type class name. special reason.?
book c = new book(); // c points book object. now, if declare c int, means c points int.
Comments
Post a Comment