CHAPTER 7. INTRODUCTION TO OBJECTS. Overview. What is a module? Cohesion Coupling Data encapsulation product maintenance Abstract data types Information hiding Objects Inheritance, polymorphism and dynamic binding Cohesion and coupling of objects. Introduction to Objects.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
INTRODUCTION TO OBJECTS
High Cohesion but Low Coupling is desirable
function code = 7;
new operation (op code, dummy 1, dummy 2, dummy 3);
// dummy 1, dummy 2, and dummy 3 are dummy variables,
// not used if function code is equal to 7
calculate withholding (employee record)
e.g., - invert matrix (original matrix, inverted matrix)
- print inventory record (warehouse record)
1. Design in terms of high level concepts
2. Design low level components
Data type + operations performed on instantiations of that data type