Diagrama de flujo
Programming with object oriented
Contenido del diagrama
Programming in object
What is
attributes
is a programming paradigm that relies on the concept of classes and objects
It is used to structure a software program into simple, reusable pieces of code
which are used to create individual instances of objects.
A class is an abstract used to create more specific, concrete objects.
Classes often represent broad categories, like Car or Dog that share attributes.
These classes define what attributes an instance of this type
Classes can also contain functions, called methods available only to objects of that type.
say we created a class, Car, to contain all the properties a car must have, color, brand, and model. We then create an instance of a Car type object, myCar to represent my specific car.
Class
These functions are defined within the class and perform some action helpful to that specific type of object.
Attributes are the information that is stored. Attributes are defined in the Class template.
When objects are instantiated individual objects contain data stored in the Attributes field.
The state of an object is defined by the data in the object’s attributes fields.
Methods
Methods represent behaviors. Methods perform actions
methods might return information about an object, or update an object’s data
The method’s code is defined in the class definition.
Concepts Importans
There are many object-oriented programming
languages including JavaScript, C++, Java, and Python.
Four Principles of OOP
child classes inherit data and behaviors from parent class
Inheritance
Encapsulation
Polymorphism
Abstraction
containing information in an object, exposing only selected information
only exposing high level public methods for accessing an object
many methods can do the same task
Inheritance
Inheritance allows classes to inherit features of other classes.
Put another way, parent classes extend attributes and behaviors to child classes.
Inheritance supports reusability
attributes
Abstraction means that the user interacts with only selected attributes and methods of an object.
Abstraction uses simplified, high level tools, to access a complex object.
Using simple things to represent complexity
Hide complex details from user
Información
- Descripción
- Trabajos Universidad Diagrama sobre Programming with object oriented, creado por Gaspa Obito el 02/09/2021.
- Creado por
- Gaspa Obito
- Visitas
- 3
- Valoración