Enter your Sign on user name and password.

Forgot password?
Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Lecture Comments (1)

0 answers

Post by Lily Truong on February 12, 2014

Thanks Prof Snape!!   Very clear and informative lecture.

Introduction to Object Oriented Programming

  • Everything is an “object”
  • Objects should be separate from other objects or loosely coupled
  • Objects are “instantiated,” you create an instance of an object
  • System.Object is the base class of everything in the .Net Framework
  • The five basic principles of OOP are idealized in the SOLID programming model
    • S = Single Responsibility
      • Do one thing only
      • Do one thing completely
      • Do one thing well
    • O = Open-Closed
      • Open for extension
      • Closed for modification
    • L = Liskov Substitution
      • Derived (child) class should be able to replace the Base (parent) class without problems
    • I = Interface Segregation
      • Each interface should do one thing only
      • Interfaces should be independent
    • D = Dependency Inversion
      • Objects should be minimally coupled
  • Tableware follows object-oriented design very well
  • Abstraction is generalizing something specific
  • Encapsulation is also called the “black box” effect
  • Inheritance creates a hierarchical structure
  • Method overloading uses the same function name, but uses different parameter lists
  • Method overriding replaces the base class implementation of a method
  • Polymorphism lets you create an object with more than one form
    • Operator overloading is the most common form
    • Not the same as overloading or overriding
  • Accessibility levels lets you restrict access to only approved assemblies