Fundermental Concepts Flashcards
What is the purpose of the using statement?
To ensure that disposable objects are properly disposed of when they are no longer needed within a specific code block
What is a class?
It is the blueprint for an object
What is a property?
It is a class member
What is a method?
It is a function that is defined within a class
What is an object?
it is an instance of a class.
what are the fundamental concepts of OOP?
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.
What are the different ways to do method overloading?
Number of parameters
Type of parameters
Order of parameters