Object-Oriented - 101 Computing https://www.101computing.net Boost Your Programming Skills! Tue, 17 Dec 2024 16:48:25 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png Object-Oriented - 101 Computing https://www.101computing.net 32 32 OOP – Inheritance – Q&A https://www.101computing.net/oop-inheritance-qa/ Sun, 13 Mar 2022 16:39:14 +0000 https://www.101computing.net/?p=13789 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

The post OOP – Inheritance – Q&A first appeared on 101 Computing.

]]>
OOP – Encapsulation – Q&A https://www.101computing.net/oop-encapsulation-qa/ Sun, 13 Mar 2022 16:23:16 +0000 https://www.101computing.net/?p=13732 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 =

The post OOP – Encapsulation – Q&A first appeared on 101 Computing.

]]>
OOP Programming: Classes & Objects https://www.101computing.net/oop-programming/ Sat, 16 Jan 2021 22:16:02 +0000 https://www.101computing.net/?p=11845 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

The post OOP Programming: Classes & Objects first appeared on 101 Computing.

]]>
Object-Oriented Programming – Crossword https://www.101computing.net/object-oriented-programming-crossword/ Tue, 30 Oct 2018 20:52:12 +0000 https://www.101computing.net/?p=7926 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.

The post Object-Oriented Programming – Crossword first appeared on 101 Computing.

]]>
Object-Oriented Programming – Terminology https://www.101computing.net/object-oriented-programming-terminology/ Mon, 29 Oct 2018 16:41:09 +0000 https://www.101computing.net/?p=7909 Click on the picture below to check your knowledge of key Object-Oriented Programming concepts: Classes & Objects, Inheritance, Encapsulation, Polymorphism and Abstract Classes.  

The post Object-Oriented Programming – Terminology first appeared on 101 Computing.

]]>
Object-Oriented Programming – Quiz https://www.101computing.net/object-oriented-programming-quiz/ Mon, 29 Oct 2018 14:50:37 +0000 https://www.101computing.net/?p=7903 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

The post Object-Oriented Programming – Quiz first appeared on 101 Computing.

]]>
Object-Oriented Programming Concepts https://www.101computing.net/object-oriented-programming-concepts/ Sun, 28 Oct 2018 21:58:55 +0000 https://www.101computing.net/?p=7839 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

The post Object-Oriented Programming Concepts first appeared on 101 Computing.

]]>
UML Diagrams https://www.101computing.net/uml-diagrams/ Wed, 20 Jan 2016 07:17:58 +0000 http://www.101computing.net/?p=2761 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,

The post UML Diagrams first appeared on 101 Computing.

]]>
Pygame: How to control your sprite? https://www.101computing.net/pygame-how-to-control-your-sprite/ Wed, 15 Jul 2015 14:27:19 +0000 http://www.101computing.net/?p=1877 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

The post Pygame: How to control your sprite? first appeared on 101 Computing.

]]>
Creating Sprites using Pygame https://www.101computing.net/creating-sprites-using-pygame/ Thu, 09 Jul 2015 15:39:15 +0000 http://www.101computing.net/?p=1829 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

The post Creating Sprites using Pygame first appeared on 101 Computing.

]]>