Unit 3 Flashcards

1
Q

An Object Is:

A

something that is perceived as an entity and referred to by name;
something perceptible by one or more of the senses;
something intelligible or perceptible by the mind.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Attributes

A

Attributes are features, properties, qualities or characteristics that are associated with an object.
Attributes are usually paired with values that qualify or quantify the attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Operations

A

An operation is what an object does or is capable of doing.
•Student studies
•Faculty member teaches
•A television increases its volume

Operations are known as Methods in OO Terminology
Invoking a method (making an object perform the operation) is done by sending a message to the object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

State of an Object

A

State is the condition of an object at a certain stage in its lifetime.
An object has a set of attributes and these attributes accept a range of values. The combination of these attributes and their associated values constitute the state of an object.

Student X has a cumulative GPA of 2.8. This student is in the probationary state; if the GPA changes to above 3.0, the student’s state will change to good-standing state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Class

A

Class is a set of objects that share the same attributes and operations.
It could be considered as a generic object or a template for similar objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Instance

A
Another term for object
An instance is the concrete manifestation of a class. For example, John Doeis an “instance” of the class Human.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Messages and Methods

A

Messages are information sent to objects to trigger methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Concept of Encapsulation

A

Encapsulation is the packaging of data and processes within one single unit.
Objects encapsulate attributes and operations of things using a single model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Information Hiding

A

Information hiding conceals and protects what goes on inside an object from the outside world.Private and Public Attributes
Private and Public Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Information Hiding Example

A

you are not burdened with the complexity of how the machine works,
cannot perform operations that you are not allowed to, and
cannot change the way the machine operates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Interface

A

An object’s interface consists of operations that are available to the public.

For instance, suppose student object has the following methods (+ stands for public and –stands for private)
+Get Student Name
+Compute GPA
-Get Social Security Number
-Get Course Grades
The Interface for student object is: get student name, compute gpa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Superclass and Subclass

A
A superclass results from generalizinga set of classes. Example: Student
A subclass results from specializinga superclass.
Example: Undergraduate Student, Graduate Student The relationship among superclassesand subclasses is called class hierarchy.Also known as is-a relationship
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Inheritance

A

Person Class-> Patient Class

Person Class->Doctor Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Aggregation

A

In object-oriented terminology, the relationship of one object to its component objects is called aggregation
.A computer object aggregates monitor, cpu, keyboard, DVD Drive objects
Also know whole-part relationship –computer is the whole and monitor, cpu, … are parts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Abstract and Concrete Classes

A

Classes that can be instantiated into actual (real orvirtual) objects are called concreteclasses.Classes that cannot be instantiated into actual (real orvirtual) objects are abstractclasses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Polymorphism

A

Polymorphism is the ability of objects belonging to different classes to perform the same operation differently.

17
Q

Object-Oriented Programming Languages

A

Simula Smalltalk C++PowerBuilder visual Basic Java .Net

18
Q

Object-Oriented Modeling

A

Object-oriented analysis and design is using an object-oriented approach to building conceptual and logical models of the system. The model of the system consists of classes/objects and relationships among classes

19
Q

The Unified Modeling Language (UML)

A

UML is a modeling languagefor object-oriented system analysis, design and deployment.

20
Q

UML Types of Modeling

A

UML provides a set of graphical elements that are combined to form diagrams. Each diagram is a visual presentation or viewof the system and satisfies one or morebroad but overlapping types of modeling:
Behavioral•modeling represents the interaction of the system with the outside world
.Structural•modeling represents the components of the system and their interrelationships.
Dynamic•modeling represents how the components of the system interact with the outside world and with each other to satisfy the behavioral requirements of the system.

21
Q

Go check out UML Diagram Summary Examples

A

DO IT