explain the concept of inheritance with an example?
Answer Posted / ackrao
Deriving the properties of one class in to another class is called as inheritance.
Existing class is base class and new class is derived class.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an interface in java?
What is the difference between length and length() method in java?
How is tree Mirroring implemented?
How will you get the platform dependent values like line separator, path separator, etc., ?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
How can an exception be thrown manually by a programmer?
How do you convert boolean to boolean?
What is flush () in java?
Why pointers are not used in java?
What are the topics in core java?
Why chararray() is preferred over string to store the password?
What's the access scope of protected access specifier?
What are the properties of thread?
How do you use compareto?
What is use of super keyword?