Home > Back-end >  New people for advice, when the custom class as a reference type some of the problems
New people for advice, when the custom class as a reference type some of the problems

Time:03-30

Sprout new self-study Java, teaching video inside only about eight basic data types, and then to see the back of the teaching video, frequently appears in a class of masterpieces in the name of a class outside the ordinary method of reference types, and as a variable of a reference type, began to don't know how a reference type, the type or baidu to check, but the use of a reference type to think will solve the problem of his own answer and there are a few questions more confused:
1. What is the use of a reference type opportunity, is general in what circumstances can choose to use so much?
2. What is the function of a reference type, so use to what purpose? For example: create an array or a variable, all I need is an array and a variable assignment as int, why use a reference type?
3. When the custom class as a reference type, and then appeared in the other classes, used by its method and variable, then again have what effect?
Thank you for your bosses to guide, thank you!
  • Related