Ask your own question, for FREE!
Computer Science 7 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!
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!