Re: Constructor Conundrum
- From: "PetriSchmitz" <PetriSchmitz@xxxxxxxxxxx>
- Date: 28 Dec 2005 12:33:02 -0800
SUPPLEMENTAL:
if you need _cs as an instance variable then the class down here is
much more appropriate:
public class ConcreteProblem extends AbstractProblem {
ConcreteSolver _cs;
public ConcreteProblem(ConcreteSolver _cs) { // perhabs change
to
private
super(_cs);
this._cs = _cs
_cs.setParam(/* ... */);
}
public static ConcreteProblem getInstance () {
ConcreteSolver _cs = new ConcreteSolver();
return new ConcreteProblem (_cs);
}
}
.
- Follow-Ups:
- Re: Constructor Conundrum
- From: ricky.clarkson@xxxxxxxxx
- Re: Constructor Conundrum
- References:
- Constructor Conundrum
- From: Lash Rambo
- Re: Constructor Conundrum
- From: PetriSchmitz
- Constructor Conundrum
- Prev by Date: Re: Constructor Conundrum
- Next by Date: Re: Newbie help! Returning an enumeration
- Previous by thread: Re: Constructor Conundrum
- Next by thread: Re: Constructor Conundrum
- Index(es):