Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

I have a small test on Constructors in JAVA tommorow. Can anyone help me understand what is a constructor and what are the uses?

OpenStudy (dls):

In object-oriented programming, a constructor (sometimes shortened to ctor) in a class is a special type of subroutine called to create an object. It has same name as the class name and is used for quick initialization of objects .

OpenStudy (anonymous):

i knw wat it is in oops.. if itz d same its like a class.. it must have d same name as dat of d class and is used to create an object..

OpenStudy (dls):

yup,java is OOPS only.

OpenStudy (anonymous):

i don't understand. isn't that two different programming language??

OpenStudy (dls):

which two?

OpenStudy (anonymous):

oops and java??

OpenStudy (dls):

OOPS is a category and Java is a language under that category. There are mainly two types of categories, POP (Procedure Oriented Programming) And OOPS(The one we are talking about) Java,C++,etc come under OOPS.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!