This is correct.
Originally posted by Pooja Jindal:
we have not explicitly put a call to super() but
compiler would automatically put a call to super().
But that not.
So the o/p would be
Tip: It's crucial which showDevice() method is called.
Originally posted by Satya Maheshwari:
Please correct me if you find something wrong here.
Originally posted by Himanshu Saxena:
...the Variables depend on the refernce type while the methods depend on the object type.
A reference to a class field causes initialization of only the class or interface that actually declares it, even though it might be referred to through the name of a subclass, a subinterface, or a class that implements an interface.