Presently, on the off chance that the deepest button acquires from the center button, it also will have rules of commitment from the center button, however indeed, from the external most button as well. A confidential relationship, implies that everything (factors and works) are private to the class as it were.
A safeguarded label implies that that class is open to classes that have a safeguarded relationship with it. At long last a public tag, implies that that class is open from inside the whole program code. So on the off chance that an Orange Button class (orange is comprised of the essential tones red and yellow) acquires from a safeguarded Red Button Class and a confidential Yellow Button class, then, at that point, the Red Button class can impart to everything of its public and safeguarded parts.