C# Objects (Teamtreehouse) Flashcards

1
Q

What is Object Oriented Programming (OOP)?

A

Object-oriented programming (OOP) is a programming language model organized around objects rather than “actions” and data rather than logic.

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

What is instantiation?

A

Creating an object or an instance of a class from class.

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

What is a constructor?

A

Constructors enable the programmer to set default values of instance variables and create an instance of a class.

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

What are static methods?

A

Static methods are called directly on a class, rather than an object.

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

What are the core principles of OOP?

A

Encapsulation, Inheritance, Polymorphism, Abstraction.

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

What is Inheritance?

A

Inheritance is the concept that when a class of objects is defined, any subclass that is defined can inherit the definitions of one or more general classes.

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

What is encapsulation?

A

Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse.

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

What does DRY stand for?

A

Don’t Repeat Yourself.

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

What is code smell?

A

Code smell indicates that there is a potential problem with how the software is designed.

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

What is polymorphism?

A

Polymorphism describes a pattern in which classes have different functionality while sharing a common interface.

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