Advance Programming II SS3 Plan
LESSON PLAN: ADVANCED PROGRAMMING II
| Subject: | Digital Technologies |
| Class: | SSS 3 |
| Term: | First Term |
| Week: | 3 |
| Topic: | Advanced Programming II |
| Duration: | 80 Minutes (Double Period) |
| Subtopics: | Object-Oriented Programming (OOP), classes and objects, attributes and methods, encapsulation, inheritance, polymorphism and abstraction. |
1. BEHAVIOURAL OBJECTIVES
By the end of the lesson, students should be able to:
- Define Object-Oriented Programming (OOP).
- Explain the meaning of classes and objects.
- Identify attributes and methods in a class.
- Explain the basic principles of OOP.
- Write a simple program using a class and an object.
- State practical applications of object-oriented programming.
2. INSTRUCTIONAL / TEACHING AIDS
- Computer system or laptop.
- Projector or interactive display, where available.
- Python programming environment or an online Python interpreter.
- Whiteboard and markers.
- Prepared examples of classes, objects, attributes and methods.
3. PREVIOUS KNOWLEDGE / ENTRY BEHAVIOUR
Students have previously learnt about functions, parameters, return values, arrays and lists. The teacher asks students to explain what a function does and how it can be used to organise a program.
4. PRESENTATION STEPS
| STEP | TEACHER'S ACTIVITY | STUDENTS' ACTIVITY |
|---|---|---|
| Step 1: Introduction (10 minutes) | Reviews functions and asks students how a program might represent real-world things such as students, cars or bank accounts. Introduces OOP as a programming approach that organises data and behaviour into objects. | Respond to questions and give examples of real-world objects and their characteristics. |
| Step 2: Classes and Objects (15 minutes) | Explains that a class is a blueprint for creating objects, while an object is an instance of a class. Uses a Student class as an example and identifies attributes and methods. | Define a class and an object and identify possible attributes and methods of a student object. |
| Step 3: Practical Demonstration (20 minutes) | Demonstrates how to define a simple Python class, use the __init__() method to initialise attributes, create an object and call a method. |
Observe the demonstration, identify the class and object, and practise writing or tracing the example. |
| Step 4: Principles of OOP (20 minutes) | Explains encapsulation, inheritance, polymorphism and abstraction using simple, familiar examples. | Explain each principle in their own words and suggest examples of how it may be used in a program. |
| Step 5: Applications and Class Activity (10 minutes) | Discusses applications of OOP in school management systems, banking software, games and business applications. Guides students in designing a simple class. | Design a class with at least two attributes and one method, such as a Book or Student class. |
| Step 6: Conclusion (5 minutes) | Summarises the meaning of OOP, classes, objects and the four basic principles. Corrects misconceptions and gives an assignment. | Answer oral questions and record the assignment. |
5. EVALUATION QUESTIONS
- What is Object-Oriented Programming?
- Differentiate between a class and an object.
- What are attributes and methods?
- List and explain the four basic principles of OOP.
- Write a simple Python class with two attributes and one method.
6. ASSIGNMENT
- Explain the meaning of a class and an object with two examples each.
- Describe encapsulation, inheritance, polymorphism and abstraction.
- Write a Python program that defines a
Studentclass with a student's name and age as attributes and a method that displays the student's details. - State four applications of Object-Oriented Programming.
7. TEACHER'S REFLECTION
After the lesson, the teacher should reflect on the following:
- Were students able to distinguish between classes and objects?
- Could students identify attributes and methods correctly?
- Were students able to explain the four principles of OOP?
- Could students create a simple class and object independently?
- What areas require further explanation or practical revision?
Comments
Post a Comment