

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of accessing private attributes from ancestor classes and invoking inherited methods of the same name in java. It covers the use of protected modifier, super keyword, and strategies for creating classes for different types of rocks. The document also includes examples and coding instructions.
Typology: Slides
1 / 25
This page cannot be seen from the preview
Don't miss anything!


















Object Type Kind Name
A rock Rock^ varying aRock
chalk Chalk^ constant
shale Shale^ constant
......
description String^ varying aRock.getDescription()