What is Object-Oriented Programming?

Object-oriented programming is a method of designing programs that groups together data using objects. Each object is part of a class which serves as a blueprint for defining the object. The idea of objects is modelled from objects in real life, so for example, we could have a class named 'vehicle' and objects within this class could be 'car', 'bus' and 'bike'. All of these objects share variables such as 'wheels' but may have different data for these variables e.g. a bike has two wheels and a car has four.

Answered by Chantelle L. Python tutor

755 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Write a function that takes a string, and outputs that string formatted in camelcase. (alternating upper and lower case for each character, e.g. cAmElCaSe)


What does __init__ mean?


Manually implement a function that finds the smallest value in a list of integers and print it.


Write a recursive function that takes any integer n and prints the nth Fibonacci number.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy