Notes
Object Orientated Language
Content of the notes (1)
Page 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.
Information
- Description
- AS - Level Computer Science Note on Object Orientated Language, created by Nathan King on 31/05/2016.
- Created by
- Nathan King
- Views
- 1
- Rating