can anyone explain to me about what actually is a constructor?
Megha SR
0
Newbie Poster
Recommended Answers
Jump to PostIts a special method that is called when a new instance of a class is created. It's used to initialise anything that needs to be initialised for a new instance. Every class needs at least one, and if you don't supply one the compiler gives you a "default" constructor that …
All 4 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Megha SR
commented:
very useful info
+0
Megha SR
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Xufyan
-4
Posting Whiz
zainab issa
commented:
very nice
+0
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.