Python Classroom notes 04/Sep/2024

Object oriented programming

  • Objects have
    • characteristics/contents (What they have)
    • capabilities (What they can do)
  • Examples
    • Bank Account:
      • characteristics (Member):
        • account number
        • balance
        • username
        • account type
        • transactions
        • status
      • capabilities (Method):
        • transfer
        • withdraw
        • close
    • Car:
      • Characteristics:
        • engine
        • seats
        • tyres
        • ..
      • Capabilities:
        • Start
        • stop
        • commute
  • objects: This represents a real world entity (your specific bank account)
  • classes: This represents a blueprint which is used to create objects
  • relations between classes/objects
    • is-a (Inheritence)
    • has-a (composition)
  • Refer Here for oop tutorial

Lets Design Movie Ticketing Software (Object Oriented Design)

  • Lets identify the classes
    • User
      • Admin (is a User)
      • Customer (is a User)
    • Theatre
    • Screen
    • Seat
    • Booking
    • Movie
    • Payment

Lets Design the Banking System (Object Oriented Design)

  • Lets Identity the Classes
    • User
      • Customer (is a User)
      • Admin (is a User)
      • Employee (is a User)
    • Account
      • Savings Account
      • Current Account
      • Loan Account
    • Transaction
      • NEFT
      • IMPS
      • RTGS
      • SBT
    • Branch
    • Card
      • Credit Card
      • Debit Card

Syntaxes & Examples

dunder methods in python

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%