Class Notes (973,758)
CA (573,545)
Trent (3,280)
COIS (143)
COIS 2240H (16)
Lecture 8

COIS 2240H Lecture 8: WEEK 8 part 2
Premium

by Denzel Awuah , Winter 2018
2 Pages
17 Views
Winter 2018

Department
Computing & Information Systems
Course Code
COIS 2240H
Professor
Alaadin Addas
Lecture
8

This preview shows half of the first page. Sign up to view the full 2 pages of the document.
WEEK 8 part 2
COIS 2240
Monday, February 26, 2018
Java Interfaces
So far so good
We have defined what an interface is
How we interface
The last question is why?
Things you can do with interfaces
Achieve polymorphism
Interfaces are more flexible because a class may implement many different interfaces
Interfaces are preferably used when there is no default
Interfaces are not perfect, they have their drawbacks.
*When implementing methods that are from an interface, You always need to override them.
Java Abstract Classes
Interfaces do not actually contain any method implementations they are simply just templates
Abstract classes function like a base class for other classes

Loved by over 2.2 million students

Over 90% improved by at least one letter grade.

Leah — University of Toronto

OneClass has been such a huge help in my studies at UofT especially since I am a transfer student. OneClass is the study buddy I never had before and definitely gives me the extra push to get from a B to an A!

Leah — University of Toronto
Saarim — University of Michigan

Balancing social life With academics can be difficult, that is why I'm so glad that OneClass is out there where I can find the top notes for all of my classes. Now I can be the all-star student I want to be.

Saarim — University of Michigan
Jenna — University of Wisconsin

As a college student living on a college budget, I love how easy it is to earn gift cards just by submitting my notes.

Jenna — University of Wisconsin
Anne — University of California

OneClass has allowed me to catch up with my most difficult course! #lifesaver

Anne — University of California
Description
WEEK 8 part 2 COIS 2240 Monday, February 26, 2018 Java Interfaces So far so good We have defined what an interface is How we interface The last question is why? Things you can do with interfaces Achieve polymorphism Interfaces are more flexible because a class may implement many different interfaces Interfaces are preferably used when there is no default Interfaces are not perfect, they have their drawbacks. *When implementing methods that are from an interface, You always need to override them. Java Abstract Classes Interfaces do not actually contain any method implementations they are simply just templates Abstract classes function like a base class for other classes
More Less
Unlock Document

Only half of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

You've reached the limit of 4 previews this month

Create an account for unlimited previews.

Already have an account?

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit