yeasir007

Showing posts with label Down-Casting. Show all posts
Showing posts with label Down-Casting. Show all posts

Sunday, October 07, 2018

Introducing Object Oriented Programming(OOP) Concept in C#

Introducing Object Oriented Programming(OOP) Concept in C#

OOP Basic Concept






Click to see the Post Contents

Object Oriented Programming What is Object Oriedted Programming?

What is OOP Philosophy?

Class What is class?

Static Member, Namespace  Access Modifier
Static Member, Namespace  Access Modifier?


Inheritance
What is Inheritance?



Encapsulation
What is Encapsulation?


Polymorphism
What is Method Overriding?

What is Up-Casting and Down-Casting?

Interface & Abstract Class
What is Interface?
What is abstract class?

What is the difference between Interface and Abstract Class?







Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data. The programming challenge was seen as how to write the logic, not how to define the data. Object-oriented programming takes the view that what we really care about are the objects we want to manipulate rather than the logic required to manipulate them.
Object oriented programming uses objects to design applications. This technique is designed to isolate data. The data and the functions that operate on the data are combined into single unit. This unit is called an object. Each object can have properties and member functions. You can call member function to access data of an object. It is based on several techniques like encapsulation, modularity, polymorphism, and inheritance. 
Basic elements of OOP are:
  • Object
  • Class
  • Method
  • Encapsulation
  • Information Hiding
  • Inheritance
  • Polymorphism
We will describe it step by step.