- A class characterizes a set of objects that share a common structure and a common behavior
- A class is used as a template for the creation of similar objects
- An object is said to be an instance of a class
The operations & attributes defined in a class can be divided into two parts :
- Interface of a class provides its outside view and therefore emphasizes the abstraction while hiding its structure and secrets of its behavior.
- Implementation of a class is its inside view, encompassing secrets of its behavior.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.