Notes
Unit 4,
Content of the notes (4)
Page 1
Unit 4, Object Orientated Programming.
Object Orientated Programming (OOP) uses a concept called object: it contains data, known as properties, and functions, known as methods to perform a task. Lastly, a class defines a the properties and methods for a group of objects, like a template for them. To show what these are like, here's an example.
The class is a rectangle, which has the properties of width and height. The methods I need are CalcArea and CalcPerimeter. Both the properties are integers. Turning this concept into Object Orientated Programming would look like this:
Calcarea
{
Width*Height { return ans }
}
CalcPerimeter
{
(2*Width)+(2*Height) { return ans }
}
Page 2
Unit 4, Procedural Programming.
Procedural programming heavily relies on implemented procedures, known as functions and sub-functions. These are ses of instructions which performs a task step-by-step.
Topdown design involves breaking down a problem into smaller, manageable sub-problems. The procedural programming language provides creators the option to take a top down approach to program development. It has several features in it like variables, data structures and program structures.
Functions are written to perform tasks on data and variables, they're helpful because they can be used to solve small sub problems simply by writing a function. Functions can be called repeatedly and programs are always made of them as well as procedures.
Examples of procedural programming language are C, COBOL and FORTRAN.
Page 3
Unit 4, Software development Environment
-Simplest program that can be used in Notes. Code can be written anywhere, all you need to do to change the file type so it will run.
-Software Development Environment provides programmers with an integrated set of programming tools to build an application from coding that is able to test the code. These are known as Integrated Development Environments (IDE). An example of this is Microsoft Visual Studio.
Editing Features
-An IDE allows the programmer to enter and edit code as well as access to object, methods, properties, events and at design time!
-
-
High Level Code Translation.
Page 4
Information
- Description
- Unedited notes on Object Orientated Programming
- Created by
- Ellen MUR
- Views
- 10
- Rating