• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 3 van de 19 pagina's
Essay

BTEC LEVEL 3 - Unit 15 - Object Oriented Programming

Document preview thumbnail
Voorbeeld 3 van de 19 pagina's

P1, P2, P3, P4, P5, P6, M1, M2, M3, D1, D2

Voorbeeld van de inhoud

UNIT 15
P1 – Features of OOP
Object
 An object is known as a ‘thing’ is used to relate actiitese The actiites which objects are used
perform decides the object behaiioure One example would be the foot is able to kick somethinge
In OOP (object oriented programming) an object is an instance of a classe
 For example:
 Box box1;
 Box Box2;

Classes

 A class represents a type of objecte It is a blueprint which will giie details of the objecte A class is
a blueprint in which indiiidual objects are madee Class contains: names, atributes, and
operatonse
 For example
 class box
 {
 };



Inheritance

 Inheritance is being able to make a new class from an already existng class by expanding on ite
Inheritance allows programmers to defne a class in terms of another class which makes it
simple to make and maintain applicatonse hich proiides the chance to reuse code
functonality and implement quuickere
 Example:
 class circle
 circle circle1

Encapsulation
 Encapsulaton is the additon in a program object requuired for a functon or objecte In OOP
encapsulaton is usually done by making classes, the classes show public methods and
propertese A class is a capsule which encapsulates methods, atributes and propertese To
proiide functons to other classese Encapsulaton also lets a class to change the internal
implementaton without damaging the oierall functon of the systeme
Example:
class rectangle {

,public:
double get area(ioid)
{
return length * height;
}
priiate:
double length
double height;
};


Polymorphism
 Polymorphism is a term which means being able to requuest same operatons by a range of types
or thingse In OOP polymorphisms is done by using diferent techniquues method, oierloading,
operator oierloading, and method oierridinge
 class shape {

 Public:

 Double height

 Double weight

 Double area

 };

 Class squuare: public shape

 Class rectangle: public shape

 Int main()

 {

 Squuare squuare2

 Squuare2eheight = 5e5

 Squuare2ewidth = 4e5

 area = squuare2eheight * squaure2ewidth

 rectangle2eheight = 3e5

 rectangle2ewidth = 6e5

 area = rectangle2eheight * rectangle2ewidth

 ]:

, Data abstraction

 Abstracton priorites the idea, quualites and propertes than partcularse The importance of
abstracton is depriied from abilites to hide irreleiant details from use of names to reference
objectse Abstracton is used to construct programse It priorites what an object is rather than
how the object is represented or how the object workse
 #include <iostream>
 using namespace std;
 Int main ( )
 {
 cout << “Hello MY NAME IS RAJ”<<endl;
 return 0;
 }




P2 - Demonstrate the use of object oriented tools and
techniques
Program 1 code:


#include "stdafx.h"
#include <iostream>

using namespace std;

int main()
{
int firstnumber, secondnumber, output;
cout << "Input first number:"";
cin >> firstnumber;
cout << "Input second number:"";
cin >> secondnumber;
cout << "What is the answer to this equation:" " << firstnumber << " + " <<
secondnumber << " ";
cin >> output;

if (output == firstnumber + secondnumber)
{
cout << "Answer is correct, Good job.";
system("pause");
}
else
{
cout << "Answer is incorrect, the correct answer was:" " << firstnumber +
secondnumber << "\n";
system("pause");
}
return 0;

Gekoppeld boek
 image
Karen Anderson, Alan Jarvis BTEC Level 3 National IT
Uitgever: februari 2011 ISBN: 9781846909290 Druk: 2

Documentinformatie

Study Level
Subject
Geüpload op
15 augustus 2017
Bestand laatst geupdate op
18 april 2018
Aantal pagina's
19
Geschreven in
2015/2016
Type
Essay
Docent(en)
Onbekend
Cijfer
Onbekend
$15.14
Gekocht door 43 studenten

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
xeon
3.7
(320)
Verkocht
1164
Volgers
850
Items
33
Laatst verkocht
1 jaar geleden


Reviews van geverifieerde kopers

7 jaar geleden

Although it was acceptable, I don't think it covered all areas in P3 and P4 and it would be good to see the assignment it was based on.

Hey, thanks for your review. The P3 and P4 was covered. I suppose it's mostly because how my teacher designed the assignment in which seemed like he didn't ask/want much information for p3 and p4 compared to the other sections. I don't have the original assignment, but it was based on getting the area of a circle if I recall correctly.

7 jaar geleden

What was the issue with the work?

7 jaar geleden

No where near enough information on the D1 and D2. All the pass marks are fine

What details are missing from the D1 and D2?

It does not mention enough about the features and tools in D1 and neither of them go into any real depth. D1 should include: 1. What is a graphical application? 2. What are the built tools/techniques and features? 3. How good are they at building a graphical application? 4. How well can OOP deal with complex problems And much more.

In my coursework, I wasn't needed to define what a graphical application was. For P2 and M2 I was required to include tools and techniques which were used, and I did include them. I don't know what you are referring to as how good "they" are at building a graphical application. I did include how OOP is suitable for complex problems in my opinion.

Antwoord verwijderd door de gebruiker

Had to make another reply since my previous reply ran out of characters. My lecturer had said he was fine with what I had written, and met the criterias. But I suppose it does depend on the lecturer marking your work. Had you asked your lecturer how much they expect you to write? or what level of detail they want you to include?




Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen