Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/32

Click to flip

32 Cards in this Set

  • Front
  • Back

Present 2 arguments,along with a brief explanation of each, for why the object-oriented approach tosoftware development is superior to the structured approach.

Natural Data Structure




Encapsulation - data hiding

a. Encapsulation

Encapsulation is the packing of both data and function intoa single component. It allows an objects state to become private while allowingits behavior to remain public.

Classes vs Objects

A class is an abstract concept of something that can be usedas a template for an object, which is an actual instance of a class. An exampleof a class is ‘Car’ while the related object could be ‘2001 Holden Commodore’

Responsibility

Responsibilityis what an object exists to do and what it must keep a record of, and is readthrough its state and behaviours

State

Everything an object knows about itself

a. Behaviour

The behavior of an object is everything the object can do,and is comprised of associated methods

a. Multiplicity

Multiplicity is an association between classes on a classdiagram where a class makes reference to another class. It allows you tospecify how many of a class can be linked to the former class.

a. Dependency

class USES class

Association

class HAS class

Compsition

class IS EXCLUSIVE OWNER OF class


black diamond

static variable

variable that is present for the lifetime of a program

static method

method that is relevant to all instances of a class rather than any one class

polymorphism

the ability to process objects differently depending on their data type

Domains

PROBLEM*DATA*HUMANINTERACTION


TASK MANAGEMENT



problem domain

business rules and system

data domain

data storage and access

human interaction

interactivity, UI

task management

process and flow of a program

use case

a way of documenting any one interaction between a user and the system

use case template

priority dependency actors trigger description extensions exceptions illustrations



multiple inheritance problems

low support


complication

multiple inheritance pros

easy to model in depth


easy to account for everything

way to model use case

jaaski template


super class

class from which other classes are derived

C# declare protected variable

protected int x = 1;

C# declare object variable

object str = "string";

subclass c#

newsubclass msc = new NewSubClass()

abstract class c#

abstract class NewAbstractClass

abstract method

public abstract void AbstractMethod()

abstract class

An overarching class that containsabstract method(s)

abstract methods

something all subclasses of an abstract class need to be able to do , but in different ways, ie animals making noise

when is a static variable useful

when we want to have something stored publicly that all classes can access