Finals Review Flashcards

1
Q

Document and view in Windows program

A

doc is a collection of data in applicationthat user interacts with; may not be text
view is obj that provides mechanism for displaying some or all of app data in doc object; how data is displayed in window and how u can interact with it

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

SDI application

A

single doc interface requires only one doc to be open at a time

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

MDI application

A

multiple doc interface: able to open multiple docs of one type, can handle docs of dif types simultaneously with ea doc in own window(child of app window)

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

message map

A

table of member functions that handle messages (OnAppAbout) bounded by a couple of macros; ea entry in map associates member fx with particular message; when given message occurs, corresponding fx is called

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

adding new menu items, go to what view? stored in what kind of files

A

stored in resource files; go to resource view

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

IPO vs event driven programming

A

Input process output: receives inputs from a user or other source, does some computations, returns computations
event driven: when menu item clicked or key pressed, message map id’s causes handler called and appropriate member function called to change

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

late-binding and virtual functions and polymorphism

A

virtual functions with normal fx will set compile time (early binding);
prob when methods in classes in cases where inherited classes redefined fx(polymorphism)

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

what’s a virtual function ex

A

fx that may run differently for different inherited classes; ex virtual volume(): box1 gets volume while box2 from inherited class may get vol*2;

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

protected vs private

A
Private members only accessible within the class defining them.
Protected members accessible in class that defines them and in classes that inherit from that class.
Both are accessible by friends of their class, and in the case of protected members, by friends of their derived classe
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

derive from class syntax

A
class one{
};
class 2: public one{
};
How well did you know this?
1
Not at all
2
3
4
5
Perfectly