Can data members be passed to a function using the object?

Question:Can data members be passed to a function using the object?

1. Yes, it can be passed only inside class functions

2.Yes, only if the data members are public and are being passed to a function outside the class

3.No, can’t be passed outside the class

4.No, can’t be done


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!