Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (6.5k points)

1 Answer

0 votes
by (11.3k points)
edited by
class A extends B{}

Here, Class A inherits the properties of class B, or 'extends' Class B. Class B is the parent of Class A. This implies that Class A can use the member functions and member variables of class B alongside its own and even override their base functionalities and values as the requirement arises.

 To know more about the various intricacies and implementations of the 'Inheritance'  properties. be sure to check out this video:

Related questions

0 votes
1 answer
0 votes
1 answer
asked Mar 6, 2021 in Java by Jake (7k points)
0 votes
1 answer
asked Mar 10, 2020 in Java by Sudhir_1997 (55.6k points)

Browse Categories

...