cs141_05 - Java Interfaces What it is Example Inheritance...

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

View Full Document Right Arrow Icon
05/10/10 cs141_05 - Interfaces 1 Java Interfaces What it is Example Inheritance of Constants Computer Information Systems Department California State Polytechnic University, Pomona
Background image of page 1

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

View Full DocumentRight Arrow Icon
05/10/10 cs141_05 - Interfaces 2 What it is An interface is a promise that your class will implement certain methods with certain signatures It facilitates polymorphism in that one can be sure methods are called correctly
Background image of page 2
05/10/10 cs141_05 - Interfaces 3 What it is What is a Signature ? It is a complete specification of a method It includes its name, its arguments with their class or data type It includes its return value’s class or data type in the case of interfaces
Background image of page 3

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

View Full DocumentRight Arrow Icon
05/10/10 cs141_05 - Interfaces 4 What it is It helps solves problems that multiple inheritance could have solved With multiple inheritance methods could be inherited from two different classes But there is a possibility of a conflict of names
Background image of page 4
cs141_05 - Interfaces 5 What it is
Background image of page 5

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

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

Page1 / 13

cs141_05 - Java Interfaces What it is Example Inheritance...

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

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