



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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A chapter from the cmpu-101 course at vassar college, focusing on interfaces and polymorphism in java. It covers the concept of interfaces, their two meanings, implementing interfaces, and the benefits of using interfaces. Examples and code snippets to illustrate the concepts.
Typology: Study notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!
The Two Meanings of "Interface"
o^ o 11 ..ccoommppaarreeTToo((oo 22 )) =<=^00 oo^11 <=^ oo^22 o 1 .compareTo(o 2 ) > 0 o 1 > o 2
Compa^ Prer oTgw^1 o^5 S^0 t^1 udents
(^2) F (^) ieler:r o/Urss (^) eforusn/jedn:ny/Desktop/cs 101 /lect 15 /Chapter 15 programs/Prog 1501 .java [line: 22 ] E s lorycrmoarbti:oo cln a:n: cnmlaoestt (^) shfi onSddt (^) u (^) csdoyemmntbpoarleTo(Student) F Eirlreo: c (^) r/:oU Smsteuprdasre/ejenTnt (^) onis(yj (^) an/Dvoaet. salakbntsogtp.rO/accbstj (^1) ea (^0) cn (^1) td)/l iednco tjea (^1) sv 5 / (^) anC.olhatan opgvt.Ceerro (^1) rm (^5) idpper (^) aoargbarsbatlremasc/tP mroegth (^15) o (^0) d 1 .java [line: 29 ]
8
In class Section : public void sort() { Arrays.sort(a, 0 ,used); }
Variables Can Be Declared as Type Talker