Computer Science, asked by Anonymous, 4 months ago

WHAT ARE THE TYPES OF CONSTRUCTORS????

HIII EVERYONE HOW ARE YOU ALL​

Answers

Answered by Anonymous
4

There are three types of constructors: Default, No-arg constructor and Parameterized.

don't forget to hit this answer as the brainliest

Answered by TencoooX
1

Constructor is a special type of function with no return type. Name of constructor should be same as the name of the class. We define a method inside the class and constructor is also defined inside a class. A constructor is called automatically when we create an object of a class. We can’t call a constructor explicitly. Let us see the types of constructor.

Constructor Types

  1. Default Constructor
  2. Parameterized Constructor
  3. Copy Constructor
  4. Static Constructor
  5. Private Constructor

Mark me as Brainliest

And.. Good Luck for your exams

Similar questions