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
- characteristics (Member):
- Car:
- Characteristics:
- engine
- seats
- tyres
- ..
- Capabilities:
- Start
- stop
- commute
- Characteristics:
- Bank Account:
- 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
- User
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
- User
