ankitweblogic logo
W e b t u t o r i a l s

Console C#.Net Tutorial

Visual Studio.NET IDE

Define C#.NET

C# Comment

C# Variables

C# Data Types

C# Escape Sequence

C# Operators


Format String

Operator Precedence

C# Keywords

Constant Variable

Type Conversion

Flow Control

Exercise Loops & Nested Loop

C# Arrays

C# Strings

User-Define Methods

Variable Scope

C# Enumerations

C# Structure

C# Exception Handling

Object Oriented Programming

C# Classes

Constructor & Destructor

C# Inheritance

C# Polymorphism

C# Operator Overloading

C# Method Overriding

C# Interface

Abstract Classes & Methods

Sealed Classes, Methods

C# Properties

C# Indexer

C# Delegates

C# Generics

C# Collection


Object Oriented Programming

Object-oriented programming (OOP) is a programming that is based on the concepts of "objects" that have data fields, and methods. Objects, which are usually instances of classes, are used to interact with one another to design applications and computer programs. C++, Java, C#, Python and PHP are the examples of object-oriented programming languages.

Concepts of Object Oriented Programming
1. Objects: Objects in C# are created from types, just like a variable. The type of an object is known by special name in OOP, its class.
2. Class
3. Abstraction: manages the complexity. When someone works on a computer, not necessary that he should know the working of each and every part of the computer. Even without the hardware knowledge, he can e-mail, type or do other jobs on the computer.
4. Encapsulation: It is the mechanism that binds code and data together
5. Inheritance: It is the process by which one object acquires the properties of another object.
6. Polymorphism: