Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Stoop ed-dual interface

on

  • 311 views

 

Statistics

Views

Total Views
311
Views on SlideShare
311
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Stoop ed-dual interface Stoop ed-dual interface Presentation Transcript

  • Design Points - Dual Interfaces
    • Stéphane Ducasse --- 2005
  • Clients?
    • Clients
    • Subclasses
  • What are the consequences?
    • A
      • { private x ;
      • void foo(){ ... x ...}
      • }
  • What can I do as a subclass?
    • I cannot access x
    • I cannot replace x
    • I cannot extend!
  • The idiom is
    • Fields are private AND you provide protected accessors
    • OR
    • Fields are protected
  • Benefits
    • Your clients cannot access your fields
    • But your subclasses are empowered
  • Two users
  • Two Users
  • Clients
    • A class has always two clients:
      • its clients and its extenders