Java-Super Keyword

Super Keyword In some cases, a variable in a subclass may have the same name as a super class variable. In such a case, the newly defined subclass variable hide the super class variable. In the following program, the super class Data has a variable named data1 and its value is 10. The subclass NewData … Read more…