1738354688 28 comments undefined undefined dark
Load More Content

8 Words Used In Object Oriented Programming

01. Class

In OOP a class is a blueprint or template for creating objects. It defines the structure and behavior that objects of the class will have.

02. Object

In OOP an object is a concrete instance of a class. It is a self-contained entity that consists of both data (attributes) and behavior (methods).

03. Instance

In OOP an instance refers to a specific, concrete object created from a class.

04. Method

In OOP a method is a function that is defined within a class and operates on instances (objects) of that class. Methods define the behavior of objects and allow them to interact with their data or perform specific actions.

05. Property

In OOP a property is a special kind of attribute that allows you to manage access to an object's data. Properties provide a way to encapsulate data by defining methods that are called automatically when attributes are accessed, modified, or deleted.

06. Inheritance

In OOP inheritance is a mechanism where a class (called the child class or subclass) derives or inherits the attributes and methods of another class (called the parent class or superclass).

07. Constructor

In OOP a constructor is a special method that is automatically invoked when an object is created from a class. Its primary purpose is to initialize the object's attributes (data members) and set up any necessary resources.

08. Destructor

In OOP a destructor is a special method that is automatically invoked when an object is destroyed or deallocated from memory. The primary purpose of a destructor is to clean up resources that the object may have acquired during its lifetime, such as closing files, releasing network connections, or freeing memory.

FarrisFahad
FarrisFahad
14h
Posts: 57 (11,816 Words) 1d
Comments: 0 2874w
Discussions: 6 1d
Replies: 0 2874w
Joined On: November 2024
There are no records