Design Pattern Is A General Repeatable Solution To A Commonly Occurring Problem in Software

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Software design is a mechanism to transform user requirements into some suitable

form, which helps the programmer in software coding and implementation. It deals with
representing the client's requirement.

design pattern is a general repeatable solution to a commonly occurring problem in software


design. A design pattern isn't a finished design that can be transformed directly into code. It is a
description or template for how to solve a problem that can be used in many different situations.

Uses of design pattern

 can speed up the development process by providing tested


 proven development paradigms.
 Effective software design requires considering issues that may not become visible until
later in the implementation.
 provide general solutions

interface

interaction to the customer

 contract between the class and the outside world

An interface is a reference type in Java. It is similar to class. It is a collection of abstract


methods. A class implements an interface, thereby inheriting the abstract methods of the
interface.

An interface can extend another interface in the same way that a class can extend another
class. The extends keyword is used to extend an interface, and the child interface inherits the
methods of the parent interface.

Inheritance in Java is a mechanism in which one object acquires all the properties and
behaviors of a parent object. ... The idea behind inheritance in Java is that you can create new
classes that are built upon existing classes. When you inherit from an existing class, you can
reuse methods and fields of the parent class.

Inheritance can achieve code re usability

helps to reuse the attributes and methods of an existing class.

The mechanism of deriving new class using old class is called inheritance

The key difference between inheritance and interface is that inheritance is to derive new


classes from existing classes and an interface is to implement abstract classes and
multiple inheritance.
the principles of design are the rules a designer must follow to create an
effective and attractive composition.
design principles provide high level guidelines to design better
software applications. They do not provide implementation
guidelines
Design for behavior change developed from work on design psychology.

behavioral design patterns are design patterns that identify common


communication patterns among objects. By doing so, these patterns increase flexibility
in carrying out communication.

You might also like