I've seen many different answers to this...is it possible to have a constructor for a class that returns a value?
zachattack05
70
Posting Pro in Training
Recommended Answers
Jump to PostIt does return a value, the reference to the class you just constructed. A constructor can return nothing else (or it's not a constructor).
All 2 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
ddanbe
commented:
Well said.
+14
zachattack05
70
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.