This discussion is archived
5 Replies Latest reply: Jul 8, 2013 3:40 AM by jwenting RSS

How to access constructor that is not public from another package

meandmycode Newbie
Currently Being Moderated



We have a class that has a constructor in package that looks like:






Then from a HwTest class ( packge we want to access this class but we cannot make the constructor public.


Any ideas on how we can create an instance of DraHw when testing without making constructor public?






  • Correct Answers - 10 points
  • Helpful Answers - 5 points