In a function declaration, we can use &self, self and &mul. When is self used?

Question:In a function declaration, we can use &self, self and &mul. When is self used?

1.Value consumed by function

2.Read only reference to value needed

3.Value mutated by function

4.Refer to local variable


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!