What do you mean by constructor overloading? Explain the use of super keyword and super () method in constructor. Also define destructor method of JAVA.
Answers
Answered by
0
Answer:
The constructor overloading can be defined as the concept of having more than one constructor with different parameters so that every constructor can perform a different task. Consider the following Java program, in which we have used different constructors in the class.
Similar questions
English,
23 hours ago
Computer Science,
23 hours ago
Computer Science,
23 hours ago
Math,
8 months ago
Physics,
8 months ago