explain the concept of inheritance with an example?
Answer Posted / kush singh
Inheritance is a process of inheriting members and member functions of a particular class. This means one class can use the data members and functions of another similar class. This reduces efforts as similar data members or functions do not need to be declared again and again.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Whats the difference between notify() and notifyall()?
How many bits is size_t?
How does queue work in java?
Differentiate between static and non-static methods in java.
What is int short for?
What are unchecked exceptions in java?
What is the final keyword in java?
What is the purpose of the file class in java programming?
Is namespace same as package in java?
What is constructor chaining and how is it achieved in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Can you run java program without main method?
What is the use of singleton?
What's the difference between comparison done by equals method and == operator?
what is difference between equals and ==?