•V- Basic Design Concepts
•Something
An object is something that can be identified in the real world. He it may have a physical presence (a horse, a book) or not (an Identifiable legal document).means that the object can be named.
• every object has a set of attributes (of which structure) and a set of methods (of which condition). The attribute is a variable intended for a value. A method is a set of instructions that take values as input and modify the values of attributes or producing a fruit.
•Be abstractionist
Abstraction is a very important principle in modeling. It consists of maintaining only relevant resources
of something for a specific problem. Objects used in UML. They are abstractions of real-world objects.
Example: We like horses for racing. They fitness properties of speed, age and balance mental health as well as fostering a place of origin is important for this process and is protected. We like horses for draft work. They properties of age, length, strength and construction is useful for this work and is protected.
Abstraction is an essential simplification for the modeling process. The UML object is thus a the abstraction of the real-world object in relation to the needs of the system, of which only the essential elements are retained
•Product classes
A set of similar things, that is, to have a structure and a behavior too made up of the same qualities and skills, the same kind a class of objects. Structure and character then it can be defined together at the class level. Each object of a class, is also called instance of a class, distinct from its identity of one and there are specific values for it human characteristics.
Example: All horses form the Horse class which has the structure
and behavior defined by amount.
The Jorphe horse is an instance of the Horse class whose fewer attributes and their values are illustrated in the figure
The name of a class appears singular. There is always a common
noun preceded or followed by one or more qualifying adjectives.
This name is available significant of all the objects constituting the class.
•Packing things inside
Encapsulation has storage attributes too object methods with respect to other objects.
Of course, certain behaviors and strategies have the same purpose of the internal processing objective of the object and should not not being exposed to external objects. Encapsulated, they are
they are called private attributes and object methods. Encapsulation is an abstraction since we simplify the representation of the object relative to external objects.
A simplified representation based on public attributes and object methods. Definition of encapsulation occurs at the class level.
Objects outside of an object are therefore instances ofother classes.
•Example
When a horse is running, it will make various movements such as leg lift, head lift, tail lift.
These movements are within the animal profession and need not be recognized on the outside. These are private methods.
These operations access a the inside of a horse its muscles, its brain and its eyes.
This inner part is expressed in terms of human behavior.
All these attributes and methods are shown in Figure.
Specialization and generalization
So far, each object class has been included unlike other classes. A classroom is enough too be defined as a subset of another class, which this subset must always constitute a set such things. Then it is a subclass of the other class. It thus specializes this other class.
Example: The horse class is a subclass of.
class of mammals. Generalization is the inverse relationship of specialization.
If a class is a specialization of another class, that class The latter is a generalization of the former. She is classes beyond classes.
Example: Class mammals are a class improvement horses.
The specialization relationship can apply at multiple levels, giving rise to a class hierarchy. Example: The class of horses is a subclass of the class of mammals, itself a subclass of the class of animals. The cat class is another subclass of the mammal class. The corresponding class hierarchy is displayed
in Figure .