Can we inherit the constructor in a Class?please give one
example.
Answer Posted / praseen
We can not inherit the constructor in a class. Becoz we can't
have same class name. The constructor hava the same name as
of the class name.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Explain a few methods of overloading best practices in java?
Why does java not allow multiple public classes in a java file ?
What is array length in java?
What about interthread communication and how it takes place in java?
Why is logger singleton?
How many types of voids are there?
what is synchronization? : Java thread
Can we have a try block without catch block?
Why we use methods in java?
Which sorting algorithm is in place?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What state is a thread in when it is executing?
What are the disadvantages of using inner classes?
What is incompatible types in java?
What are 3 data types?