0 results for
ICT
Computing
Responsive image

D2 - Object Orientated Programming

Overview
Flight Path
Learning Objectives
0 results forGuest
GradeSkill_name
 4.1 I can Interpret, debug and use code written using procedural paradigms
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: classes
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated paradigms in terms of: objects/instances
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: inheritance
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: encapsulation
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: polymorphism and overloading
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: data hiding
 4.2 I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: reusability
 4.2 I can interpret, debug and use code written in Python 3.4 or subsequent versions and C family derived languages

Strength

Improvement

Targets

Progress this topic

0%


Overall Progress for this unit

NAN%


LO90 :- I can Interpret, debug and use code written using procedural paradigms

LO91 :- I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: classes

Classes

break

Exercise

  • Explain what a Class is in and give an example in python.
  • Extension questions:

    1. What are the main difference between an instance of a class(Object) and a class ?
    2. Create the code for a class of type Vehicle

    LO92 :- I can Interpret, analyse and evaluate code written using Object-orientated paradigms in terms of: objects/instances

    Objects

    break

    Exercise

  • Explain what an Object is in and give an example in python.
  • Extension questions:

    1. Allow the user to create objects of different types of the Class Vehicle with the four types of attributes given in the image above?
    2. Create a method to output the vehicle attributes.
    3. Add a milage attribute and a change milage method.

    LO93 :- I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: inheritance

    Inheritance

    break

    Exercise

  • Explain what inheritance is and give an example in python.
  • Extension questions:

    1. Allow the user to create a class of type vehicle(sports) that inherits the methods and attributes of vehicle and adds in its own of attributes horse power and top speed?
    2. Create a method to output the sports car attributes.

    LO94 :- I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: encapsulation

    Encapsulation

  • If an identifier is only preceded by one underscore character it is a protected member
  • Protected members can be access like public members from outside of the class
  • break

    Exercise

  • Explain what Encapsulation is and give an example in python.
  • Extension questions:

    1. What is the difference between protected and private data and give an example of when you would use one over the other.?
    2. Add a private method to your Vehicle Class.

    LO95 :- I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: polymorphism and overloading

    Key Difference:

    Polymorphism feature allows the user to handle different data types and functions with a uniform interface. A function that can evaluate to or be applied to values of different types is known as a polymorphic function. Method Overloading is a feature in programming languages that allows creating several methods that have the same name but differ from each other in terms of type of input and output.

    break

    Exercise

  • Explain the difference between polymorphism and overloading.
  • Extension questions:

    1. Create an overloaded method for a python class.?
    2. Use Polymorphism with a method in your class.

    LO96 :- I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: data hiding

    break break

    Exercise

  • Explain the what the Object Orientated term 'data hiding' is and give an example
  • Extension questions:

    1. Explain the difference between abstraction and encapsulation.?

    LO97 :- I can Interpret, analyse and evaluate code written using Object-orientated programming paradigms in terms of: reusability

    LO98 :- I can interpret, debug and use code written in Python 3.4 or subsequent versions and C family derived languages


    0 results forGuest
    Recent Comments

    Teacher Date: 2025-10-26


    Guest