Knowing how constructors work in Java will help you to design a code structure that is flexible and maintainable. In this Java code challenge, you will learn how a constructor behaves when we use inheritance. Do you know what happens when one class extends the other?
It’s time for you to have fun with the following Java code challenge so you can get your Java skills sharp!
You can check the video solution of this challenge also (I recommend you to try out the Java code challenge first though):
That’s it, challenger! Never stop learning and stay sharp for the market!
In your video the System.outs are “c1” and “c2” but in the article are “character” and “simpson”.
Hello Aldo, thanks for your comment. It’s just a String difference, but the concept is the same.
Nice, great job Rafa. You Rock as always.
I always thought coding was for others to be able to read. Coding in this manner is not good practice and not practical.