This repository contains 5 beginner-friendly Python projects to understand Classes, Objects, Attributes, and Methods.
Concepts: Class, Objects, Instance Attributes, Methods
Description:
- Create a
Studentclass withname,roll_no,marks. - Add methods to display student info and calculate grade.
Concepts: Class Attributes, Instance Attributes, Methods
Description:
- Create a
BankAccountclass withaccount_number,balance. - Methods for
deposit,withdraw, andcheck_balance.
Concepts: Multiple Objects, Instance Methods
Description:
- Create a
Bookclass withtitle,author,available. - Methods to
borrow_book()andreturn_book().
Concepts: Object Methods, Encapsulation
Description:
- Create a
Calculatorclass with methods:add,subtract,multiply,divide. - Take input from the user and perform operations.
Concepts: Constructor (__init__), Class vs Instance Attributes
Description:
- Create a
Carclass withbrand,model,year. - Method to display details and check car age.