Activity 01
Pairs Coding: Class vs Object Builder
Pairs define a 'Vehicle' class with attributes like brand and speed, plus a display method. They create three objects with different values and call methods to output details. Pairs then explain class-object differences to another pair.
Differentiate between a class and an object with real-world examples.
Facilitation TipDuring Pairs Coding: Class vs Object Builder, circulate and ask each pair to explain which lines in their code represent the class and which represent objects, ensuring both students articulate the distinction aloud.
What to look forPresent students with a scenario, for example, modeling a library book. Ask them to identify: 1. What would be the class name? 2. List at least two attributes. 3. List at least two methods. 4. Give an example of an object created from this class.