Thursday, March 17, 2011
What Is The Stomach Drop Feeling Called
The object-oriented programming (OOP) is a programming model that uses objects and their relationships for designing applications and software.
OBJECTS An object is an abstraction of some fact or real-world entity has:
a) attributes representing its characteristics or properties and
b) methods that represent behavior or actions they perform.
All attributes and methods common objects are grouped into classes.
A CLASS
class equals the generalization of a specific type of objects, ie a class is a template to create multiple objects with similar characteristics, so it is said that an object is an instance of a class .
Imagine a mold for making jelly, then the mold is the class, and the gels are objects. Example
class
An example would be the Person class, which can be defined by attributes and methods.
attributes of the class Person can be: Name
_ _ _
Age Sex Nationality
_
The methods Person class can be: Eat
_ _
Sleep Study
_ _ Work
After defining the class (template) Person can begin to create instances (objects) of this class.
Each object created will then have the attributes of the class Person (Name, Age, Sex, Nationality) and methods of the class Person (Eat, Sleep, Study, Work).
Objects created in a program to communicate with each other through messages .
POO CHARACTERS
Abstraction The abstraction allows us to focus on more important and relevant aspects of things to get an overview of a problem, leaving aside the specifics.
Encapsulation means gathering
all elements that can be considered within the same entity, the same level of abstraction. This increases the cohesion of the system components. Heritage
The object-oriented programming to define classes in terms of other classes, for it is considered a class hierarchy where each class has a superclass
(the upper class in the hierarchy) and each Superclass may have one or more subclasses (lower classes in the hierarchy).
The term had significantly inherit a subclass has all the attributes (properties) and methods of its superclass. Polymorphism
Using polymorphism, you can implement multiple forms of the same method within a clase.Debido this, you can access different methods with the same name.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment