Lecture

Common English Expressions in Object-Oriented Programming

Object-Oriented Programming (OOP) is a programming paradigm that organizes programs around data and functionalities bundled together into units called objects.

By structuring a program into classes and objects, OOP significantly enhances code reusability and maintainability.

In object-oriented programming, expressions like inheriting from a parent class, overriding a method, and creating an object are frequently used.

To clearly convey these concepts in English, it's important to familiarize yourself with core terms, as well as commonly used verb and preposition combinations.

Let's explore some of the key expressions commonly used in object-oriented programming through examples, and summarize English expressions that accurately describe core concepts such as classes, objects, inheritance, and overriding.

Quiz
0 / 1

Generally, the verb inherit is used with the preposition 'from' to indicate the act of inheriting from a parent class.

True
False

Lecture

AI Tutor

Design

Upload

Notes

Favorites

Help

Expressions Related to Object-Oriented Programming

inherit from a parent class

Inherit is a verb used when a child class inherits the attributes and methods of a parent class. The act of inheritance can be expressed without a direct object.

The Dog class inherits from the Animal class.

override a method

Override is a verb used to redefine an inherited method with the same name.

In this subclass, we override the calculate method to handle new logic.

instantiate an object

Instantiate is a verb used to create an instance of a class that can be used in the program.

The program instantiates a new User object when a person signs up.

access an object's property

Access is a verb used to reach or retrieve a value from a property within an object.

The code accesses the name property of the Person object.