I am new to assertions.In the following code, how is it possible for the constructor C to access validateC()?
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18652
posted
0
Ummm... because you called validateC() from the constructor? It's always possible to access a class method from within a constructor - why not? (There may be complications if the method is later overridden, but that's not possible here since it's private.) I'm not sure what you're asking.
"I'm not back." - Bill Harding, Twister
Siva Sivaraman
Greenhorn
Joined: Sep 26, 2002
Posts: 17
posted
0
This was the answer, I was looking for
It's always possible to access a class method from within a constructor