Skip to content

Commit afce4f7

Browse files
authored
Create README.md
1 parent 5ac9215 commit afce4f7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# OOP--Object-Oriented-Programming-_EXPLANATION
2+
I explained and demonstrated object-oriented programming with examples.
3+
4+
## Class
5+
In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state
6+
(member variables) and implementations of behavior.
7+
8+
## Constructor
9+
In class-based object-oriented programming, a constructor (abbreviation: ctor) is a special type of subroutine called to create an object.
10+
It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.
11+
12+
## Static Class
13+
A static class in C# is a class that cannot be instantiated. A static class can only contain static data members including static methods,
14+
static constructors, and static properties. In C#, a static class is a class that cannot be instantiated.
15+
16+
## Encapsulation
17+
In object-oriented programming (OOP), encapsulation refers to the bundling of data with the methods that operate on that data, or the
18+
restricting of direct access to some of an object's components
19+
20+
## Inheritance
21+
Inheritance is the procedure in which one class inherits the attributes and methods of another class. The class whose properties and
22+
methods are inherited is known as the Parent class.
23+
24+
## Interface
25+
An interface is a programming structure/syntax that allows the computer to enforce certain properties on an object (class).
26+
27+
## Abstract
28+
Its main goal is to handle complexity by hiding unnecessary details from the user. That enables the user to implement more
29+
complex logic on top of the provided abstraction without understanding or even thinking about all the hidden complexity.

0 commit comments

Comments
 (0)