Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Object Oriented Programming Thinking in objects, Study Guides, Projects, Research of Object Oriented Programming

A topic in object oriented programming named thinking in objects

Typology: Study Guides, Projects, Research

2017/2018

Uploaded on 09/27/2018

111071
111071 🇰🇪

5

(2)

2 documents

1 / 14

Toggle sidebar

Related documents


Partial preview of the text

Download Object Oriented Programming Thinking in objects and more Study Guides, Projects, Research Object Oriented Programming in PDF only on Docsity! mea otrathmore fay UNIVERSITY Sen Lecture 4:Thinking in Objects Kurui Daniel Strathmore OEE a eee Strathmore UNIVERSITY Soe Case Study: Duke’s Choice 6/11/2018 Object Oriented Programming | Identifying Object Attributes and Operations – Attributes are data, such as: • ID • Order object – Operations are actions, such as: • Delete item • Change ID | Object with Another Object as an Attribute Customer customer ID name address phone number email address *Order assign a customer ID Order order ID data *Shirt(s) total price *Form of payment *CSR status calculate order ID calculate the total price add shirt to order remove shirt from order submit the order | Possible Attributes and Operations for Objects in the Duke’s Choice Case Study order ID Order data *Shirt(s) total price *Form of payment *CSR status calculate order ID calculate the total price add shirt to order remove shirt from order submit the order shirt ID Shirt price description size color code calculate shirt ID display shirt information customer ID Customer name address phone number email address *Order assign a customer ID | Case-Study Solution: Attributes Class Form of Payment Catalog CSR Attributes customer ID name address phone number email address *Order *Shirt(s) name extension | Case-Study Solution: Behaviors Class Order Shirt Customer Attributes order ID date *Shirt(s) total price *Form of payment *CSR status shirt ID price description size color code customer ID name address phone number email address *Order Behaviors calculate order ID calculate total price add shirt to order remove shirt from order Submit the order calculate shirt ID display shirt information assign a customer ID | Case-Study Solution: Behaviors Class Form of Payment Catalog CSR Attributes customer ID name address phone number email address *Order *Shirt(s) name extension Behaviors verify credit card number verify check payment add a shirt remove a shirt process order