Overview of Object-Oriented Programming Concepts

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/100

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

101 Terms

1
New cards

OOP Paradigm

Programming Paradigm based on object and class

2
New cards

Procedural Programming

Sequence of Instructions to be executed.

3
New cards

Spaghetti Codes

Program Jumps over the place and its difficult to follow.

4
New cards

High Level Programming Languages

Languages like java, C#, JavaScript etc.

5
New cards

Class

Is a container that has data that called attributes and functions that called methods.

6
New cards

Encapsulation

Bundling of data and methods into a single unit.

7
New cards

Inheritance

A mechanism that allows a child class to inherit properties from its parent Class.

8
New cards

Polymorphism

Is the ability of an object to take on many forms.

9
New cards

Abstraction

Hides Complexity, Property and Methods.

10
New cards

Data Types

a particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed on it.

11
New cards

Value type

Data types that holds a value within its own memory.

12
New cards

Reference Data Type

Data types that contains a pointer to another memory.

13
New cards

Variables

Used to store and manipulate data.

14
New cards

Declaration

Data must be declared before use.

15
New cards

Initialization

Giving a variable an initial value.

16
New cards

Scope

Determines where in the code variables can be accessed.

17
New cards

Lifetime

Duration during which it exists on the memory.

18
New cards

Mutability

Mutable or not immutable.

19
New cards

Naming Convention

Rules in writing a name in programming.

20
New cards

Type Inference

Automatically determined by the compiler based on assigned value.

21
New cards

Nullability

Nullable reference types.

22
New cards

Value Assignment

The process of storing a value in a variable's memory location.

23
New cards

Constant

A data item that whose value cannot be changed during program execution.

24
New cards

Operators

Used in mathematical or logical manipulations.

25
New cards

Assignment Operators

Used to assign and update and store values to variables.

26
New cards

Arithmetic Operators

Used to perform Mathematical Operations on numeric Values.

27
New cards

Relational Operators

Used to compare two values or expression and return a boolean result.

28
New cards

Logical Operators

Used to perform logical Operations on boolean values and allows combine and modify conditions in complex ways.

29
New cards

Expression

Operators that can be evaluated to single value, Combination of operands.

30
New cards

Comments

Essential for improving code readability.

31
New cards

Control Structures

A way to specify the flow of control in any algorithm or program.

32
New cards

Sequential Logic

It follows a serial or sequence flow.

33
New cards

Selection Logic

Allows one set of statements to be executed if a condition is true and another set of actions to be executed if false.

34
New cards

Iteration Logic

Employs a loop which involves a repeat statement.

35
New cards

For()

Repeats a block of code a specific number of times.

36
New cards

While()

Repeats a block of code as long as a given condition is true.

37
New cards

Public

Can be directly called once the object is created.

38
New cards

Private

Called within a method and it is not visible when object is created.

39
New cards

Protected

Can only be accessed by the class itself and cannot be changed.

40
New cards

Methods

a block of code that contains a series of statements also called functions

41
New cards

Access Modifiers

keywords that are used in order to specify the accessibility of methods

42
New cards

Void

a return type that means this method doesn't have a return value

43
New cards

Method Overload

C# allows multiple method to have the same name but with different signatures

44
New cards

Static Methods

Can be called without creating an object of the class

45
New cards

Optional Parameters

C# allows specifying default values for parameters which make them optional when calling the method

46
New cards

Round()

rounds a single number to the nearest Integer or specified decimal places

47
New cards

Sqrt()

returns the square root of a number

48
New cards

Pow()

returns the value of x to the power of y

49
New cards

Abs()

returns absolute value of a number

50
New cards

Length (String)

get the number of characters in a string

51
New cards

ToUpper/Lower

Converts a string to upper or lower case format

52
New cards

Contains()

check if the string is contains a specified substring

53
New cards

Replace()

Replace all occurrences of a substring with another string

54
New cards

Substring ()

retrieves a portion of a string

55
New cards

Length (Array)

returns number of elements in the array

56
New cards

Sort()

arranges the elements in ascending order

57
New cards

IndexOf()

Returns the index of the first occurrence of an element

58
New cards

ToInt, ToDouble, ToString()

Converts an object to the specified type

59
New cards

Parse()

Converts string to a specific type

60
New cards

Strings

Collection of Characters

61
New cards

String Interpolation

using the symbol $ before a string allows to embed expression directly in a string

62
New cards

String Method

methods that Helps manipulate and analyze String data

63
New cards

String Comparison

Compare String using method like Equals, Compare, and Compare Ordinal for various types of strings

64
New cards

String Formatting

using method like string.format or interpolated strings for more complex formatting task

65
New cards

Null String

the variables does not point to any String object, while an empty String is a valid string with no characters

66
New cards

Type casting

it's when you assign a value of one data type to another type

67
New cards

Explicit Typecasting

Converting a larger type to a smaller type

68
New cards

Implicit Typecasting

Converting a smaller type to a larger type

69
New cards

Constructors

special methods in C# that will invoke automatically when an object class is created

70
New cards

Default Constructors

You can set an initial value of the class itself

71
New cards

Polymorphism Constructors

Implementing Constructors in different ways

72
New cards

Copy Constructors

Constructors that copy itself

73
New cards

Private Constructors

Preventing to implement this specific constructor, while implementing Encapsulation

74
New cards

Static Constructor

You can invoke this constructor Once

75
New cards

Errors

Mostly happen at compile time, occurs when you violate the rules of a programming language

76
New cards

Exception

Occurs at run time, syntactically correct but encounters an unexpected condition during execution

77
New cards

Try

This is where to place the code that may potentially throws an exception

78
New cards

Catch

Specifies the type of exception and if an exception occurs the code within the catch block will be executed

79
New cards

ex

Variable that holds a reference to the caught exception

80
New cards

finally

Executed regardless of whether an exception was thrown.

81
New cards

Event Driven

It occurs when the user interacts with a GUI object.

82
New cards

Event-Driven Programming

It fosters the dynamic interaction between users and computers.

83
New cards

Windows Forms

Is a Graphical User Interface (GUI) class library, to provide an easier interface to develop the application.

84
New cards

Editor Window or Main Window

Here, you will work with forms and code editing, double click the form then it will open the code for that.

85
New cards

Properties Window

This window is used to change the different properties of the selected item in the Solution Explorer.

86
New cards

Solution Explorer Window

It is used to navigate between all items in solution.

87
New cards

Windows Forms framework

Provides controls that developers can use to build applications.

88
New cards

Windows Forms applications

Versatile and can be used to create various types of applications such as data entry, management, and reporting applications, as well as games and multimedia applications.

89
New cards

Software development framework

Developed by Microsoft, provides a runtime environment and a set of libraries and tools for building and running applications on Windows operating systems.

90
New cards

Common Language Runtime (CLR)

Responsible for managing the execution of code written in any of the supported languages.

91
New cards

.NET Framework Class Library

Pre-built functions and classes that can be used to create a wide range of applications.

92
New cards

History of .Network Framework

Designed and developed by Microsoft. First version of the .Net framework was 1.0 (Year = 2002).

93
New cards

.Net Framework

To develop Form-based applications, Web-based applications, and Web services.

94
New cards

.Net platform

Includes VB.Net, C#, etc., used to build applications for Windows, phones, web, etc.

95
New cards

.Net Phase I

OLE Technology - Early 1990's: Interprocess Communication.

96
New cards

.Net Phase II

COM Technology
1995: Intermodule Communication.

97
New cards

.Net Phase III

Late 1990's: Intersite Communication.

98
New cards

OLE Technology

OLE (Object Linking and Embedding) to link elements from different applications with each other.

99
New cards

Common Object Model (COM) Technology

COM (Common Object Model) enables various software components to communicate.

100
New cards

.NET Technology

Collection or set of technologies to develop windows and web applications, launched in Feb. 2002.