This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: methods, encapsulation by using different modifiers, constructor. A class is a blueprint of an object. Same as a blue print of a house. The object is the same as a real house. Access specifiers Private – protect the variables from changing accidently. Cannot be called from outside the class blue print. Public – The user can have access to it. EXAM CH 1-5 EMPHASIS 4 and 5. QUIZES ON BLACKBOARD MAKE NOTES PAGE STATIC METHODS – Think of the member of the class versus member of the object. Static goes with the class. Variables can be static as well. EX. num of students. The user does not care how many students there are. Only the Administrators… The ones who develop the class. Not every student is going to have a copy of numStudents. Therefore it is a static variable....
View Full Document
- Fall '08
- Subroutine, Control flow, relational operator, static variable, sum – MAX