I have a class called BarGraph. It has a public static nested class BarGraphData. The BarGraph class has an add method that takes BarGraphData. Is this a good idea to have the data class nested?
Thanks
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.
As far as I know, nesting of static classes doesnt really matter that much after your code is compiled. I would go with whatever makes you feel like you can use it in a logical way when writing your bargraph.
If you want to define a relation you can also devide your classes into packages.