presentation13 - Visibility Soheil Hassas Yeganeh Computer...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Visibility Soheil Hassas Yeganeh Computer Engineering Department Sharif University of Technology 4 levels of visibility 2 4 levels of visibility 2 Object An Object may have some private properties and methods . 4 levels of visibility 2 Object Neighbours An Object may have some package level visible properties and methods . 4 levels of visibility 2 Object Neighbours Children An Object may have some protected properties and methods . 4 levels of visibility 2 Object Neighbours Children An Object may have some public properties and methods . Anyone! Levels of Visibility in Java 3 Levels of Visibility in Java • Private • Only the container class can access the private Felds and methods. • Package • The container class and classes in the same package of the container class can ... • Protected • The container class , inherited classes and the classes in the same package of the container class can ... • Public • All classes can ......
View Full Document

This note was uploaded on 11/21/2010 for the course COMPUTER S 003 taught by Professor Izadi during the Spring '10 term at Amirkabir University of Technology.

Page1 / 23

presentation13 - Visibility Soheil Hassas Yeganeh Computer...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online