• 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 2 van de 9 pagina's
Samenvatting

Summary Programming Logic and Design Ch 10

Document preview thumbnail
Voorbeeld 2 van de 9 pagina's

This document provides an in depth and thorough summary of chapter 10 of Programming Logic and Design. It is ready for exam and tests. Everything is laid out as it is in the textbook. All needed information is provided in short. It is written in an easy to study format and reads easy. I got distinctions in exams and tests.

Voorbeeld van de inhoud

Chapter 10
The principles of object-oriented programming
 Object-oriented programming (OOP)
 A programming model that focuses on an application’s components and data and the
methods to manipulate them
 Uses all of the familiar concepts from modular procedural programming
 Variables, methods, passing arguments
 Sequence, selection, and looping structures
 But involves a different way of thinking
 Important features of object-oriented languages
 Classes
 Objects
 Polymorphism
 Inheritance
 Encapsulation


Classes
 Class
 Describes a group or collection of objects with common attributes
 Object - One instance of a class
 Sometimes called one instantiation of a class
 When a program creates an object, it instantiates the object
 Example
 Class name: dog
 Attributes: name, age, hasShots
 Methods: changeName, updateShots
 Attributes
 Characteristics that define an object as part of a class
 Example
 Automobile’s attributes: make, model, year, and purchase price
 Methods
 Actions that alter, use, or retrieve the attributes
 Example
 Methods for changing an automobile’s running status, gear, speed, and cleanliness
 Think in an object-oriented manner
 Everything is an object
 Every object is a member of a class
 Is-a relationship

,  “My oak desk with the scratch on top is a Desk”
 Class reusability
 Class’s instance variables
 Data components of a class that belong to every instantiated object
 Often called fields
 State
 A set of all the values or contents of a class object’s instance variables
 Every object that is an instance of a class possesses the same methods
 Create classes from which objects will be instantiated
 Class client or class user
 A program or class that instantiates objects of another prewritten class


Polymorphism
 The world is full of objects
 A door is an object that needs to be open or closed
 But an “open” procedure works differently on different objects
 Open a door
 Open a drawer
 Open a bank account
 Open a file
 Open your eyes
 One “open” procedure can open anything if it gets the correct arguments


Inheritance
 Inheritance
 The process of acquiring the traits of one’s predecessors
 Example
 A door with a stained-glass window inherits all the attributes (doorknob, hinges) and
methods (open and close) of a door
 Once you create an object
 Develop new objects that possess all the traits of the original object
 Plus, new traits


Encapsulation
 Encapsulation
 The process of combining all of an object’s attributes and methods into a single package
 Information hiding (also called data hiding)
 Other classes should not alter an object’s attributes
 Outside classes should only be allowed to make a request that an attribute be altered
 It is up to the class’s methods to determine whether the request is appropriate

Gekoppeld boek
 image
Uitgever: 2023 ISBN: 9780357880876 Druk: Onbekend

Documentinformatie

Heel boek samengevat?
Nee
Wat is er van het boek samengevat?
10
Geüpload op
15 november 2025
Aantal pagina's
9
Geschreven in
2025/2026
Type
Samenvatting
€3,20

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt 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.
tanjanel1303
5,0
(2)
Verkocht
11
Volgers
2
Items
47
Laatst verkocht
1 maand geleden

Echte notities, van echte studenten
Elk document op Stuvia is geschreven door een medestudent die hetzelfde vak deed. Zo leer je van iemand die het al heeft gehaald.



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 iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus 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