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
How can constructor chaining be done using this keyword?
What is the difference between post and put?
What is a text string?
What is class forname used for?
What is keyword in oop?
How does class forname work in java?
Does hashset allow duplicates in java?
How do you read a char in java?
What is token in java?
Can we have static methods in an interface?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is meant by data hiding/encapsulation?
What is the use of using enum to declare a constant?
What's the difference between comparison done by equals method and == operator?
Is it safe to install java on my computer?