If you have two classes Boo and Foo, and each Instance of Foo contains in it an instance of Boo, can you have a Setter for a private attribute in Boo contained inside in the constructor of Foo?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, absolutely. Why would you not be able to?
The fact that you ask the question suggests there’s something you think might go wrong – what in particular did you have in mind?