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
What is the purpose of the enableevents() method in java programming?
Write a function for palindrome and factorial and explain?
How do you calculate square roots?
What is io stream in java?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
How does finally block differ from finalize() method?
How can we achieve thread safety in java?
What is the char data type?
How can we access some class in another class in java?
Define locale.
How do you join strings in java?
What does percent mean in java?
Is null a keyword in java?
What are the main features of java?
Why java is object oriented?