Our teacher gave us an assignment.Can anyone help or give me some idea on how to solve this java problem? im still learning java. Here's the problem:
"Write some code to demonstrate to yourself the chain of construction. Create an inheritance hierarchy of 4 classes. Give them any names you like. They don't have to have any data or methods, but each one should have a no-args constructor. These constructors should print out a line identifying the current class (something like "This line belongs to Construction 1 "). Your main() method should construct a single instance of your lowest-level subclass. What is the output and explain your work during our laboratory time? Does it matter which class contains the main() method?"