Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

A Concise Guide to Object Orientated Programming
A Concise Guide to Object Orientated Programming
A Concise Guide to Object Orientated Programming
Ebook42 pages37 minutes

A Concise Guide to Object Orientated Programming

Rating: 0 out of 5 stars

()

Read preview

About this ebook

A concise beginners guide to the theory of object orientated programming. This book covers the basic theory and more advanced best practices, patterns and advanced concepts such as Publish/Subcribe, CQRS, Dependency Injection and a brief introduction to MVC,

LanguageEnglish
Release dateSep 19, 2015
ISBN9781386239369
A Concise Guide to Object Orientated Programming

Read more from Alasdair Gilchrist

Related to A Concise Guide to Object Orientated Programming

Related ebooks

Databases For You

View More

Related articles

Reviews for A Concise Guide to Object Orientated Programming

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    A Concise Guide to Object Orientated Programming - alasdair gilchrist

    Object Orientated Programming

    Overview of Object Orientated Programming (OOP)

    So, what is the difference in viewpoint?

    So what is an Object?

    Objects

    Class

    The Four Concepts of OOP

    Encapsulation

    Abstraction

    Inheritance

    Polymorphism

    Method Overloading

    Operator Overload

    Method Over-Riding

    OOP Design Principles

    S.O.L.I.D

    SRP - The Single Responsibility Principle

    OCP - The Open Closed Principle

    LSP - The Liskov Substitution Principle

    ISP - The Interface Segregation Principle

    DIP - The Dependency Inversion Principle

    Summary

    Part II

    Publish/Subscribe Design Pattern.

    Part III

    Command Query and Responsibility Segregation Pattern (CQRS)

    CQRS Overview

    Segregation and Synchronization

    Why you should use a CQRS pattern

    Scalability

    Reduced Complexity

    Flexibility

    Business Focus

    Task Based UI’s

    Collaboration

    Stale Data

    Rule of Thumb

    When not to use CQRS

    Summary

    Part IV

    Dependency Injection

    What is a Dependency?

    What is Dependency Injection?

    The Goals of Dependency Injection

    Where and When to Use D.I

    What is a Dependency Injection Container?

    The benefits of Dependency Injection

    When to use Dependency Injection Container

    When not to use D.I Container

    Part V

    ASP.NET MVC

    Overview

    MVC Design Patterns

    MVC Framework

    MVC Typical Applications & Advantages

    Key Features of MVC

    Differences between MVC and MVP and MVVM

    Typical Uses

    Object Orientated Programming

    Overview of Object Orientated Programming (OOP)

    OOP is a design philosophy, which as the name suggests, focuses on objects rather than procedures or functions. The concept is that programmers relate real world things to small manageable pieces of code called objects. OOP takes a different perspective to problem solving than procedural languages such as C or functional languages such as Pascal.

    So, what is the difference in viewpoint?

    Well, in a procedural program, the code is a list of tasks, with the code and data separated, it may use subroutines to make it modular but typically, it is a long list of procedures. The difference with OOP, is that it is down to the separation of code and data. In a procedural language, such as C, a programmer defines certain steps of logic to apply to data, hence the requirement for a long list of procedural steps. However, in OOP, the focus is on an entity called an object. This object, modeled on a real world thing or entity, has been constructed in the programmer’s imagination to relate to a conceptual thing, it doesn’t have to be a physical thing, it could just as well be a procedure or an event. By taking this approach and by seeing how such conceptual entities interact and mimic reality, it is possible to construct a logical program that makes sense in the real world.

    So what is an Object?

    An object in OOP is a programmable module, which a programmer constructs in order to mimic, describe, and to

    Enjoying the preview?
    Page 1 of 1