Java, like many object-oriented languages, allows you to create your classes in a special way — you can extend an existing class. Classes created in this way are said to inherit the attributes and behaviors from the original class. Your new class can add new variables and behaviors, and even change existing behaviors.
What are the advantages of inheritance, and how can you use inheritance to improve your own code and solve problems? In this article, we'll take a look at the idea of inheritance, and how it can turn on the lights in your project!
(If you need a brush-up on object-oriented something something, take a look at this brief refresher.)
Java takes an object-oriented approach to problem solving. But what is object-oriented programming, and for that matter, what are objects? In this article, we check out this whole different way of thinking. Read on to discover a new direction for your project, or just to review OOP concepts.