Apuntes
Object Orientated Language
Contenido del apunte (1)
Página 1
Object-Orientated Programming
Object Orientated programming allows a program to solve problems by programming objects hat interact with each other. Classes are made to create objects which contain methods and attributes.
Class - A template used to define an object. It specifies the methods and attributes an object should have. In the following example the class is the house.
Object - An instance of a class. In the following example myHouse is an object.
Method - A subroutine associated with an object. In the following example, changeDoorColour and changeFloors are methods
Attribute - Variables contained within and associated to an object. In the following example doorColour, floors and garden are attributes.
Información
- Descripción
- AS - Level Computer Science Apunte sobre Object Orientated Language, creado por Nathan King el 31/05/2016.
- Creado por
- Nathan King
- Visitas
- 1
- Valoración