Tag: Object-Oriented

OOP – Inheritance – Q&A

Question 1[2 marks] Class File:​ private filename​ //Constructor for the File class procedure new(strFilename):​ filename = strFilename​ public procedure rename(strFilename)​ if strfilename!=””:​ filename = strFilename​ Class MP3 inherits File:​ private title​ private artist​ private duration​ //Constructor for the MP3 class

OOP – Encapsulation – Q&A

Question 1[2 marks] class Padlock: private key private locked //Constructor for the Padlock class: procedure new(str_key,bool_locked): key = str_key locked = bool_locked public function unlock(combination): if combination==key: locked = False return True else: return False public procedure lock(): locked =

OOP Programming: Classes & Objects

In this blog post we will investigate how to create some basic classes and objects that could be used in a range of programming projects. Classes and Objects are the building blocks of Object-Oriented programs. You can find out about

Object-Oriented Programming – Crossword

Are you confident with your knowledge of key Object-Oriented Programming concepts: Classes & Objects, Inheritance, Encapsulation, Polymorphism and Abstract Classes? You can find our more about OOP concepts on the following page.

Object-Oriented Programming – Terminology

Click on the picture below to check your knowledge of key Object-Oriented Programming concepts: Classes & Objects, Inheritance, Encapsulation, Polymorphism and Abstract Classes.  

Object-Oriented Programming – Quiz

Before taking this quiz, make sure you are confident with your understanding of key Object-Oriented Programming concepts. Take the Quiz! (open full screen) List of Keywords If you are stuck and need a clue, you can reveal below the list

Object-Oriented Programming Concepts

Object-Oriented Programming (OOP) is a programming approach based on objects and classes. The object-oriented paradigm allows us to organise software as a collection of objects that consist of both data/attributes and behaviours. This programming concept appeared in the 1980s and

UML Diagrams

By completing the following activities you will learn about the different types of UML diagrams used to design OOP projects (Object Oriented Programming). You will learn how to draw: Use Case Diagrams, Class Diagrams, Object Diagrams, Communication Diagrams, Sequence Diagrams,

Pygame: How to control your sprite?

This tutorial is the third tutorial in a series of five Pygame tutorials: Tutorial 1 – Getting Started with Pygame Tutorial 2 – Creating Sprites using Pygame Tutorial 3 – How to control your sprites Tutorial 4 – Adding More

Creating Sprites using Pygame

This tutorial is the second tutorial in a series of five Pygame tutorials: Tutorial 1 – Getting Started with Pygame Tutorial 2 – Creating Sprites using Pygame Tutorial 3 – How to control your sprites Tutorial 4 – Adding More