answersLogoWhite

0

What are types of constructors?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

there are two types of constructure.

1. Default constructure

2. Parameterised constructure

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What are different type of constructor in java?

Every class, including abstract classes, MUST have a constructor. The different types are: a. Regular constructors b. Overloaded constructors and c. Private constructors


What is the use of constructors?

Constructors are used in object-oriented programming languages to create usable instances of abstract data types (classes).


What types of functions cannot be made virtual?

Static member functions, member function templates and constructors cannot be virtual.


What are the similarities between constructors and methods?

Two key points to remember about constructors are that they have no return type and their names must exactly match the class name. Methods can have any names and can have any return types.


How do you make a constructor overloading programme inc sharp?

By defining multiple constructors that differ in the number or types of arguments.


For what purpose constructors are used in Java?

Constructors are used to create the instance of a class.


When was Worshipful Company of Constructors created?

Worshipful Company of Constructors was created in 1985.


Are constructors inherited?

Constructors, static initializers, and instance initializers are not members and therefore are not inherited.


Can you have more than 1 constructor in a class?

Yes. At least in Java, that's possible, as long as the constructors have a different number, or different types of, parameters.


What actors and actresses appeared in Constructors - 2013?

The cast of Constructors - 2013 includes: Rauf Khabibullin as Rauf


What is a constructor with value zero?

Constructors have no value, zero or otherwise. That is, constructors cannot return a value. This is because constructors are not functions in the sense you cannot call a constructor directly. Constructors are invoked in the background when you instantiate an object of the class, thus any return value would be lost in the background, and would therefore not be visible to the invokee.


How many constructors can c have?

A class can have any number of constructors, as far as they are having different parameters or different number of parameters. For example, a class A can have following constructors & even more: A() -the default constructor A(A objectA) -the copy constructor A(int p) A(int p1, int p2) A(int[] p1, float p2) A(double p1, double p2, int p3) A(A objA, int[] p) A(B objB)