Posts

Showing posts from November, 2025

CST 362 PROGRAMMING IN PYTHON(2019 scheme S6 Program Elective I )

CST 362 PROGRAMMING IN PYTHON(2019 scheme S6 Program Elective I )            🌈SYLLABUS            🕮TEXTBOOK : 1.   Kenneth A Lambert., Fundamentals of Python : First Programs, 2/e, Cengage Publishing, 2016 2.                                             2. Wes McKinney, Python for Data Analysis, 2/e, Shroff / O’Reilly Publishers, 2017 📖MODULES NOTES Module 1:  Programming Environment and Python Basics Module 2:  String & Text File                     Function ,List                     Dictionaries Sample Question Module 3:   Turtle                        Image Processing  ...

SOLID Principles

  🌟 SOLID Principles SOLID is a set of five object-oriented design principles that help you write clean, maintainable, and flexible code. S – Single Responsibility Principle (SRP) One class = One responsibility ✔ A class should do only one job ✔ It should have only one reason to change Example: A Book class should only store book data. Validation should be in another class. O – Open/Closed Principle (OCP) Open for extension, closed for modification ✔ You should be able to add new features ✔ Without changing existing code Example: Instead of modifying a class, create a subclass to extend behavior. L – Liskov Substitution Principle (LSP) Child classes should behave like parent classes ✔ A subclass should be usable wherever the parent class is used ✔ It should not break the program Example: A Square should behave like a Rectangle if it extends Rectangle. I – Interface Segregation Principle (ISP) No class should be forced to implement methods it doesn’t us...