CPS 311 Chapter Notes - Chapter 2: Minimum Bounding Box, Adenosine A2B Receptor, Liskov Substitution Principle

81 views14 pages

Document Summary

Major elements of oop design: hierarchy, abstraction, encapsulation, modularity. Abstraction: a simplified description or view of something that emphasizes characteristics or purposes relevant to the user, while suppressing details that are immaterial or distracting. i. e. - hierarchical level. Encapsulation is the process of combining data and functions into a single unit called class. Encapsulation, the data is not accessed directly; it is accessed through the functions present inside the class. In simpler words, attributes of the class are kept private and public getter and setter methods are provided to manipulate these attributes. Thus, encapsulation makes the concept of data hiding possible. Keeps data safe from external interference and misuse. The combining together of attributes (data) and methods (behaviour/processes) into a single abstract data type with a public interface and a private implementation. This allows the implementation to be altered without affecting the interface. Canonical form: hierarchies all together; contains many objects each instantiated from a class.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents