Fundermental Concepts Flashcards

1
Q

What is the purpose of the using statement?

A

To ensure that disposable objects are properly disposed of when they are no longer needed within a specific code block

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

What is a class?

A

It is the blueprint for an object

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

What is a property?

A

It is a class member

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

What is a method?

A

It is a function that is defined within a class

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

What is an object?

A

it is an instance of a class.

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

what are the fundamental concepts of OOP?

A

Abstraction: Hiding implementation details and showing only essential features.

Polymorphism: Allowing one entity (method or object) to take multiple forms.

Inheritance: A mechanism where a class derives properties and behaviors from another class.

Encapsulation: Wrapping data and methods into a single unit and restricting direct access to data using access modifiers.

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

What are the different ways to do method overloading?

A

Number of parameters
Type of parameters
Order of parameters

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