C# Programming Flashcards

1
Q

Procedural programming

A

code executes sequential line by line

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

Object Orientated Programming

A

language that uses classes and objects to build models based on the real world

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

Classes

A

A user defined blueprint from which objects are instantiated. Consists of common properties and methods.

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

what do classes do

A

Defines properties and method set that are common to all objects of that type.

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

Object

A

variable with state (values), instantiated from classes.

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

Base Class

A

A parent class which is inherited from

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

Derived Class

A

A child class which inherits properties and methods from a base class

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

Polymorphism

A

Allows inherited properties and methods in a derived class to be overridden through the use of the “virtual” and “override”

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

Encapsulation

A

process of data hiding achieved with access modifiers (public/private/protected)

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

Constructor

A

A method which is executed immediately when an object is instantiated.

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

Aggregation

A

Using classes in other classes. Used classes NOT destroyed when the host class is destroyed.
In (UML) it’s represented by a white diamond
line. Going Towards

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

Composition

A

Using classes in other classes. Used classes ARE destroyed when the host class is destroyed.
In (UML) it’s represented by a black diamond
line. Going away.

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

Overloading

A

creating a method with the same name as another method,
but different number of parameters or other datatype

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

Private/Protected/Public/

A

Can only be accessed within the same class./
Can only be accessed within the same class and inherited classes./
Can be accessed by any other code outside of the class it was defined in./

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

Abstract

A

A class which defines properties and methods without any implementation

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

Static Class

A

A class which defines properties and methods that can be used w/o an instantiated object. similar to a (procedural programming) global variable.