Can a class inherit the constructors of its superclass?
Answer Posted / patil abhijeet
No, We cant inherit the constructor. Using super we can call
the constructor but we cannot modify the working of it.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does sprintf return?
How to do encapsulation in java?
What are the different ways of implementing thread? Which one is more advantageous?
What is an empirical question?
How does hashset works in java?
What is class level lock ?
How do you insert a line break?
What is OOP Language?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
Can I declare a class as private?
What is the same as procedures?
What is the similarity between dynamic binding and linking?
In a container there are 5 components. I want to display all the component names, how will you do that?
What happens when I use / and % with a negative numerator?
How many digits is int32?