Test1-333

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Composition

(filled diamond) denotes a stronger relationship where destruction of the container implies destruction of the parts.

Aggregation

(unfilled diamond) is an association where the containing relation is loose and parts may survive the destruction of the outer containing object

What is the complete life cycle for the creating programs from earliest step to last?

1.Read the problem 2.Work sample cases to explore problem, generate test 3.cases for later, find issues and ambiguities 4.Propose data structure 5.Propose program modularity and flow 6.Code and debug 7.Test 8.Package and deliver 9.Acceptance testing (grading?) 10.Maintain (not usually done by classes)

What is a package? (in Java code, in file system , in jar)?

A collection of classes

What are commands?

Effects states and do not have a return value

Tool: Netbeans

Features: edit, compile, jar, javadoc, ...

What is a reference? Where are they used in Java?

A pointer;points to an object

What is JUnit?

A tool for testing methods

Mutable (String)

Able to be changed

"constants"

All CAPS

What are Streams?

An input source or an output destination;stdin, stdout, stderr

What is an object?

An instance of a class

What is the main purpose of the course? Other purposes?

Becoming familiar with Object Oriented Design and Object Oriented Programming as well as improve our project skills, presentation skills, and become familiar with ethics and intellectual property as applied to software engineering.

instance variables? private?

Camel case; Starting with lowercase;nouns

static variables? private?

Camel case; Starting with lowercase;static

methods? private?

Camel case; Starting with lowercase;verbs

Class private?

Camel case;Starting with an uppercase

Constructor? private?

Camel case;Starting with an uppercase

What is inheritance? What is the test for inheritance?

Specializes ;in the context of a subclass(child class);Java keyword "extends";applying the "is it specialization" test,

What is an abstract class?

a class that is declared abstract;it may or may not include abstract methods;cannot be instantiated, but they can be subclassed;allows you to not implement all methods

super() super.methods()

allows access to superclass's method from inside the overriding subclass method of the same name.

What are exceptions?

an attempt to help error handling without impacting visible algorithm.

What is in a .class file?

byte codes

System is a ____ and in, out, error are ___ ___ that are static

class;accessible objects

Java models _____ with _______.

everything;objects

Private

only visible in current class

Package

only visible in current class and classes that are in the same package

What is an array? How do you use it?

ordered collection of like items (primitives or objects);Access before or beyond the span of the array will be caught on occurence

Protected

package plus the subclasses of this class

Scope

private, [package], protected, public

(System.err)

standard error

(System.in)

standard in

(System.out)

standard out

What do all objects have?

state, behavior, identity

Public

visible to all

Immutable (String)

Not able to be changed

Don't put ___ in modeling classes

I/O

What are local (automatic) variables?

Inside methods

How do you write a JUnit test?

Java writes

Where are the math functions?

Located in the math class;math.util

What is testing?

Looking for problems in a code

What are queries?

Methods that do not change state and returns a variable

What is an interface?

Multiple inheritances without instance variables

Math.random returns what ?

Random numbers

What is JavaDoc?

Reads a carefully documented source and produce the documentation.

What is TDD?

Test Driven Design

What is Canvas, what goes on there for this course? What are your usage obligations/expectations?

The UAB Learning Management System (LMS);Check canvas every 48 hours

What is a class?

The type of an object; It's definition is enclosed in braces { }.

What is UML? Class, object, relationships (contains, cardinality, inherit, interface), interactions

Unified Modeling Language

What are class variables?

Variables that belong to a class;Not oustide of a class (public scope)(static)

What are instance variables?

Where the state of an object is stored;located outside of any method in the model class(private scope)


संबंधित स्टडी सेट्स

Chapter 25: Management of Patients with Complications of Heart Disease

View Set

Common Core Geometry Cumulative Exam Review

View Set

Realism and Regionalism Unit Test

View Set