![]() ![]() Singleton Pattern: To share common data access throughout the application(Android). MVC Pattern: I had used at the presentation so model separated by controller (Android). In my project I had used MVC, Singleton, Observer. It implements cohesion by each class being is focused and modular it performs only what it should be doing and nothing extra. For example, Class Car extends Class Vehicle, and class Car "has-an" instance of Class Engine. The Has-a relationship deals with two classes where Class A "has" an instance of Class B. The Is-a relationship deals mainly with inheritance coupling does exist between two classes, but it should be minimized to ensure they each have a level of independence. This refers to inheritance or implementation. There is cohesion involved in HAS-A (each class is focused and modular it performs only what it should be doing and nothing extra). There is no specific keyword to implement HAS-A relationship but mostly we are depended upon "new" keyword It is also known as "composition" or "aggregation". The User View or "I don't care how it works, as long as it works.Has-A means an instance of one class "has a" reference to an instance of another class or another instance of same class. Sequence Diagrams for Scenarios of Business Use Cases Replace Nested Conditional with Guard Clauses Replace Magic Number with Symbolic ConstantĬonsolidate Duplicate Conditional Fragments
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |