Can a class inherit the constructors of its superclass?
Answer Posted / shaziya parveen
No, a class can not inherit the constructor of its
superclass. This subclass can inherit the instance
variables and tha methods of the super class.
Using 'super' keyword a sub class can inherit the
constructors. This is only the solution.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is a lock or purpose of locks in java?
What is unicode with example?
Which collection allows duplicate values in java?
Can a constructor be protected?
What is the function of character?
Is java good for beginners?
What is the difference between stringbuffer and stringbuilder?
What is difference between hashset and hashmap?
What is the concept of multithreading?
What is meant by main method?
What is the use of set in java?
What is the use of java?
What is the difference between choice and list?
Can we execute a program without main() method?
What is unicode full form?