Jump to content
nedo

Diving in OOP

Recommended Posts

This article will cover almost every OOPS concept that a novice/beginner developer hunt for, and not only beginners, the article’s purpose is to be helpful to experience professionals also who need to sometimes brush-up their concepts or who prepare for interviews

Prize winner in Competition "Best C# Article of May 2014" (First Prize level)

Download PDF article - 1.1 MB

Introduction

I have been writing a lot about advanced topics like MVC, Entity Framework, Repository Patterns etc, my priority always remains to cover the topic as a whole, so that a reader does not have to search for missing links anywhere else. This article will cover almost every OOPS concept that a novice/beginner developer may hunt for, and not only beginners, the article’s purpose is to be helpful to experienced professionals who may need to brush-up on their concepts or who prepare for interviews.

I will take the topics in a manner that we cover them in a simple, straightforward way giving code snippets as example wherever needed. We’ll take C# as our programming language throughout our readings.

We’ll play with tricky questions and not go for enough theory. For theory you can refer MSDN.

image002.jpg

Diving in OOP (Day 1) : Polymorphism and Inheritance(Early Binding/Compile Time Polymorphism).

Diving in OOP (Day 2) : Polymorphism and Inheritance (Inheritance).

Diving in OOP (Day 3) : Polymorphism and Inheritance (Dynamic Binding/Run Time Polymorphism).

Diving in OOP (Day 4) : Polymorphism and Inheritance (All about Abstarct classes in C#).

Diving in OOP (Day 5): All about access modifiers in C# (Public/Private/Protected/Internal/Sealed/Constants/Readonly Fields)

Diving in OOP (Day 6): Understanding Enums in C# (A Practical Approach)

Since this is the first part of the series, my readers should have basic knowledge of C# and should be aware of OOP concepts and terminology.

OOPS

1. What is OOPS and what is advantage of OOP?

OOP stands for "Object-Oriented Programming." Remember, it's OOP not OOPS,’S’ may stand for system, synopsis, structure etc. It is a programming approach entirely based on objects, instead of just functions and procedures like in procedural languages. It is like a programming language model organized around objects rather than "actions" and data rather than logic. An "object" in an OOP language refers to a specific type, or "instance," of a class. Each object has a structure exactly similar to other objects in a class, but can have individual properties/values. An object can also invoke methods, specific to that object

OOP makes it easier for developers to structure and organize software programs. Individual objects can be modified without affecting other aspects of the program therefore it is also easier to update and change programs written in object-oriented languages. Since the nature of software programs have grown larger over the years, OOP has made developing these large programs more manageable and readable.

Continuare articoleaici.

Edited by nedo
Adaugat link pentru Day 5.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...