title: How to initialize various data type members values from different classes?
body: <p>I have a public class named as ABC. There are various types of variables declared with the getter and setter method along with that.</p>
  
  <p>Those values will be coming from various other classes.</p>
  
  <p>What will be the best approach to initialize those data types? </p>
  
  <p>I can go with making that class as singleton.I don't want to create multiple object for that class.</p>
  
  <p>The values which will be coming from classes are B,C,D,E.</p>
  
  <p>If i create a singleton object in B and pass that with the Intent to C,D,E and assign remaining values will that be the best approach ?</p>
  
  <p>OR</p>
  
  <p>creating a public static object as a constant.and access that object from different classes and store variable.</p>
  
  <p>OR </p>
  
  <p>is there any other better approach ?</p>
  
  <p>Please advice.
  [Please Note: Coding is for Android]</p>