What is meant by constructor?

Answer Posted / ajay yadav

Constructor is defined as a type of member function which
calls itself when an object is created also has the same
name as of the class.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between association, composition and aggregation?

742


what are the disadvantages of indexes in oracle?

2062


What is the longest unicode character?

871


What is the gregoriancalendar class in java programming?

771


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

855


What is arguments in java?

725


Does java isempty check for null?

761


Which browsers work with java?

805


Why does java have two ways to create child threads?

665


Is char a method in java?

729


Can a class have multiple superclasses?

775


Explain the different forms of polymorphism?

763


Can we use both this () and super () in a constructor?

765


Can we have this () and super () together?

788


What are the advantages of encapsulation in java?

734