Chapter3_3ClassAtributes

Page 2 dr s gannouni dr a touir introduction to oop

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: elong to objects’ states. Page 2 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Class Attributes and Objects • A class attribute is in one fixed location in memory. • Every object of the class shares class attributes with the other objects. • Any object of the class can change the value of a class attribute. • Class attributes (and methods) can also be manipulated without creating an instance of the class. Page 3 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Class Attributes Declaration • The class attributes (and methods) are declared as instance attribute...
View Full Document

This document was uploaded on 03/03/2014.

Ask a homework question - tutors are online