Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[T6A1][T09-B2] Dana Baghabrah #523

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danab101
Copy link

@danab101 danab101 commented Mar 4, 2017

Ready for review

Copy link

@nirandiw nirandiw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danab101 Some comments added. Please close the PR after reading comments.



/**
* Represents the interface between Storagefile and logic in the address book.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to give a more general header comment. Tomorrow it could be the interface between two different classes. Generally, we don't refer the subclasses in the super class because it changes over time.


public abstract class Storage {

public abstract void save(AddressBook addressBook) throws Exception;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Methods should have header comments. If not, developers who need to inherit from this class will not know how exactly they should override the methods and other developers who write client code for this class will not know how to use it either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants