Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Inheritance in Java
Inheritance in Java
111 members
Leaderboard
Popular
New
Old
Volodymyr Portianko
Inheritance in Java
19 July 2018 9:01
Base class constructors
Hi! Last time we talked about constructors and learned a lot about them. Now we're going to talk about base class constructors. What's a base class?It has to do with the fact that in Java several different classes can have a common origin. This is called inheritance. Several child classes can have one common ...
Jesse Haniel
Inheritance in Java
9 August 2022 8:25
Java instanceof Operator
Hi! Today we'll talk about the instanceof operator, consider examples of how it is used, and touch on some aspects of how it works:) You've already encountered this operator on early levels of CodeGym. Do you remember why we need it? If not, no worries. Let's remember together...
John Selawsky
Inheritance in Java
20 March 2019 12:15
Widening and narrowing of reference types
Hi! In a past lesson, we discussed casting primitive types. Let's briefly recall what was discussed. We imagined primitive types (in this case, numeric types) as nesting dolls that vary in size according to the amount of memory they occupy...
Aditi Nawghare
Inheritance in Java
20 July 2020 15:33
Instanceof and Inheritance in Java
Hi! In previous lessons, we've already briefly become acquainted with the concept of inheritance. Today, we'll touch on this topic again, but again not too deeply. We are still going to have a more detailed lesson on this in the future. Today we'll just take a quick look at a few practical examples and get ...
Oleksandr Miadelets
Inheritance in Java
26 March 2020 6:00
Examples of inheritance of nested classes
Hi! Today we'll look at an important mechanism: inheritance in nested classes. Have you ever thought about what you would do if you needed to make a nested class inherit some other class. If not, believe me: this situation can be confusing, because there are a lot of nuances...
John Selawsky
Inheritance in Java
14 January 2022 12:27
Super keyword in Java
The super keyword is used in different situations. Before getting started with this post we encourage you to learn about inheritance in Java for a better understanding. What is the super keyword in Java?..
Jesse Haniel
Inheritance in Java
18 July 2022 16:20
Java Class Cast() Method
In Java, there are different options for casting. One of them is the cast() method of the java.lang.Class class. it is used to cast the specified object to an object of this class. The method returns an object after being cast as...
Artem Divertitto
Inheritance in Java
8 February 2022 12:45
Java extends Keyword with Examples
What is Java extends Keyword? The extends in Java is a keyword that indicates inheritance between a child and parent class. Extends In Java is a keyword that is written with the child class during class declaration followed by the name of the parent class. When a child class...
Oleksandr Miadelets
Inheritance in Java
22 November 2022 13:34
Inheritance in Java
Java is an object-oriented language. This means that everything in Java consists of classes and their objects, and obeys the paradigms of OOP (object-oriented programming). One such paradigm is inheritance, a mechanism in Java by which one class is allowed to inherit...
Please enable JavaScript to continue using this application.