WHAT ARE THE TYPES OF CONSTRUCTORS????
HIII EVERYONE HOW ARE YOU ALL
Answers
Answered by
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
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
- Default Constructor
- Parameterized Constructor
- Copy Constructor
- Static Constructor
- Private Constructor
Mark me as Brainliest
And.. Good Luck for your exams
Similar questions
Math,
2 months ago
Environmental Sciences,
2 months ago
English,
2 months ago
English,
4 months ago
History,
11 months ago