Can we inherit the constructor in a Class?please give one
example.
Answer Posted / sanketh
we cannot inherit constructors.
because if we declare a constructor it must be a same name
as its class name, but two class must have same name
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
How can we create objects if we make the constructor private ?
What is numeric data type?
Name and explain the types of ways which are used to pass arguments in any function in java.
How do you implement tree mirroring in java?
Can private class be inherited in java?
What is difference between string and new string?
Explain the difference between a Thread and a Process.
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is an immutable class?
Can you make a constructor final in Java?
What is the function of character?
Explain treeset?
What is the finalize method do?
What methods are used to get and set the text label displayed by a button object?
How do you convert string to int in java?