Can a class inherit the constructors of its superclass?
Answer Posted / ranganathkini
No a subclass cannot inherit the constructors of its
superclass. Constructors are special function members of a
class in that they are not inherited by the subclass.
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
What is better - 'bit-shift a value' or 'multiply by 2'?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
Explain the difference between abstraction and encapsulation.
What are the different ways to handle exceptions?
what is mena by object block any what is the use of that
Explain covariant method overriding in java.
Explain when we should make an instance variable private.
What happens if we don’t override run method ?
what is difference between equals and ==?
What is the relationship between clipping and repainting under awt?
Which is the class in java?
What are synchronized blocks in java?
What are the main uses of java?
What are class members by default?
how we can make a read-only class in java?