This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 'COMPARE TO' METHOD: useful to compare to objects starts off as public always public int compareTo(PlayingCard) hallmarks of good encapusation data private methods are public user or client cna only accsess through the methods private methods are helper methods so the user wont see it only we can see it and use it.does work for us and sves alot of typing visiblity modifires-public only avaible outside the class-privae only avialbe inside the class-"default"< this isnt actually typed, we just dont pt anything-protected<similar to private compareTo method: retuns an int if'this and pc are equivalent then 0 will be returned...
View Full Document
This note was uploaded on 03/21/2008 for the course CS 1301 taught by Professor Smith during the Spring '08 term at UGA.
- Spring '08