This is a very important concept in java: inheritance. "Extends" is a keyword meaning that the TEST class inherits the fields and methods of AnotherClass. TEST is a subclass of AnotherClass. For example, you might have a class called Shapes with subclasses of Circle, Square, Triangle, etc. They all have areas, but do not use the same formula to calculate the areas. This is object oriented programming (OOP). You should read about it. Remove "nospam" from my email address to reply.
Yes, it means that TEST (should be Test) has all the methods and properties of AnotherClass.
You can add properties and methods to Test that extend the functionality of AnotherClass. You can also redefine methods of AnotherClass to do something a different way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.