#OOP (Object-Oriented Programming)
Explore tagged Tumblr posts
Text
she object on my programming till i am oriented
191 notes
·
View notes
Text
Object-oriented Programming for short ...
youtube
Post #158: YouTube, Socratica, OOP in Python, 2025
#education#coding#programming#learning#i love coding#coding is fun#i love programming#programming language#i love python#oop#object oriented programming#socratica#Youtube#python tutorial#python coding#python
6 notes
·
View notes
Text
The concept of object oriented programming explained
Object-oriented programming is a fundamental concept present in numerous programming languages such as C++, Java, JavaScript, and more. It becomes straightforward once you truly grasp it, and that's precisely what this post aims to help you achieve. So, stop your scrolling for a second and delve into this post for a thorough and clear explanation.
Understanding the Term "Object-Oriented"
To grasp OOP, let's begin by explaining the name itself: "Object-Oriented." This term signifies that OOP revolves around entities known as "objects."
What Exactly Is an Object?
An object in OOP is any entity that possesses both state and behavior. Consider a dog as an example: it has states such as color, name, and breed, while its behaviors encompass actions like wagging the tail, barking, and eating.
The reason we introduce the concept of objects in programming is to effectively represent real-world entities, a task that cannot be accomplished with conventional variables or arrays.
Classes: Abstract Forms of Objects
Now, what about classes? A class is essentially the abstract form of an object. If we take the example of a "dog," the object "Mydog" is a concrete instance, while the class "dog" represents dogs in a more general sense. Think of a class as a blueprint or template from which you can create individual objects.
Four Pillars of Object-Oriented Programming
Now that we've established the fundamentals of objects and classes. OOP is built upon four key principles:
Inheritance: Inheritance occurs when one object inherits all the properties and behaviors of a parent object. It promotes code reusability and facilitates runtime polymorphism.
Polymorphism: Polymorphism entails performing a single task in multiple ways. For instance, it can involve presenting information differently to customers or implementing different shapes like triangles or rectangles.
Abstraction: Abstraction is about concealing internal details while exposing functionality. Consider a phone call; we don't need to understand the intricate inner workings.
Encapsulation: Encapsulation involves bundling code and data into a single unit. Just like a capsule contains various medicines . In a fully encapsulated class (e.g., a Java bean), all data members are private, ensuring data integrity and controlled access.
I remember finding these images that explained these concepts using the 'Squid Game' series, and they are just perfect. So, I'm sharing them here and giving all credit to their owner :
Polymorphism , Inheritance , Encapsulation
#code#codeblr#css#html#python#studyblr#progblr#programming#comp sci#web design#web developers#web development#website design#webdev#website#tech#html css#learn to code#OOP#object oriented programming
44 notes
·
View notes
Text
ByteByteGo | Newsletter/Blog
From the newsletter:
Imperative Programming Imperative programming describes a sequence of steps that change the program’s state. Languages like C, C++, Java, Python (to an extent), and many others support imperative programming styles.
Declarative Programming Declarative programming emphasizes expressing logic and functionalities without describing the control flow explicitly. Functional programming is a popular form of declarative programming.
Object-Oriented Programming (OOP) Object-oriented programming (OOP) revolves around the concept of objects, which encapsulate data (attributes) and behavior (methods or functions). Common object-oriented programming languages include Java, C++, Python, Ruby, and C#.
Aspect-Oriented Programming (AOP) Aspect-oriented programming (AOP) aims to modularize concerns that cut across multiple parts of a software system. AspectJ is one of the most well-known AOP frameworks that extends Java with AOP capabilities.
Functional Programming Functional Programming (FP) treats computation as the evaluation of mathematical functions and emphasizes the use of immutable data and declarative expressions. Languages like Haskell, Lisp, Erlang, and some features in languages like JavaScript, Python, and Scala support functional programming paradigms.
Reactive Programming Reactive Programming deals with asynchronous data streams and the propagation of changes. Event-driven applications, and streaming data processing applications benefit from reactive programming.
Generic Programming Generic Programming aims at creating reusable, flexible, and type-independent code by allowing algorithms and data structures to be written without specifying the types they will operate on. Generic programming is extensively used in libraries and frameworks to create data structures like lists, stacks, queues, and algorithms like sorting, searching.
Concurrent Programming Concurrent Programming deals with the execution of multiple tasks or processes simultaneously, improving performance and resource utilization. Concurrent programming is utilized in various applications, including multi-threaded servers, parallel processing, concurrent web servers, and high-performance computing.
#bytebytego#resource#programming#concurrent#generic#reactive#funtional#aspect#oriented#aop#fp#object#oop#declarative#imperative
8 notes
·
View notes
Text
Understanding Object-Oriented Programming and OOPs Concepts in Java
Object-oriented programming (OOP) is a paradigm that has revolutionized software development by organizing code around the concept of objects. Java, a widely used programming language, embraces the principles of OOP to provide a robust and flexible platform for developing scalable and maintainable applications. In this article, we will delve into the fundamental concepts of Object-Oriented Programming and explore how they are implemented in Java.

Object-Oriented Programming:
At its core, Object-Oriented Programming is centered on the idea of encapsulating data and behavior into objects. An object is a self-contained unit that represents a real-world entity, combining data and the operations that can be performed on that data. This approach enhances code modularity, and reusability, and makes it easier to understand and maintain.
Four Pillars of Object-Oriented Programming:
Encapsulation: Encapsulation involves bundling data (attributes) and methods (functions) that operate on the data within a single unit, i.e., an object. This encapsulation shields the internal implementation details from the outside world, promoting information hiding and reducing complexity.
Abstraction: Abstraction is the process of simplifying complex systems by modeling classes based on essential properties. In Java, abstraction is achieved through abstract classes and interfaces. Abstract classes define common characteristics for a group of related classes, while interfaces declare a set of methods that must be implemented by the classes that implement the interface.
Inheritance: Inheritance is a mechanism that allows a new class (subclass or derived class) to inherit properties and behaviors of an existing class (superclass or base class). This promotes code reuse and establishes a hierarchy, facilitating the creation of specialized classes while maintaining a common base.
Polymorphism: Polymorphism allows objects of different types to be treated as objects of a common type. This is achieved through method overloading and method overriding. Method overloading involves defining multiple methods with the same name but different parameters within a class, while method overriding allows a subclass to provide a specific implementation of a method that is already defined in its superclass.
Java Implementation of OOP Concepts:
Classes and Objects: In Java, a class is a blueprint for creating objects. It defines the attributes and methods that the objects of the class will have. Objects are instances of classes, and each object has its own set of attributes and methods. Classes in Java encapsulate data and behavior, fostering the principles of encapsulation and abstraction.
Abstraction in Java: Abstraction in Java is achieved through abstract classes and interfaces. Abstract classes can have abstract methods (methods without a body) that must be implemented by their subclasses. Interfaces declare a set of methods that must be implemented by any class that implements the interface, promoting a higher level of abstraction.
Inheritance in Java: Java supports single and multiple inheritances through classes and interfaces. Subclasses in Java can inherit attributes and methods from a superclass using the extends keyword for classes and the implements keyword for interfaces. Inheritance enhances code reuse and allows the creation of specialized classes while maintaining a common base.
Polymorphism in Java: Polymorphism in Java is manifested through method overloading and overriding. Method overloading allows a class to define multiple methods with the same name but different parameters. Method overriding occurs when a subclass provides a specific implementation for a method that is already defined in its superclass. This enables the use of a common interface for different types of objects.
Final Thoughts:
Object-oriented programming and its concepts form the foundation of modern software development. Java, with its robust support for OOP, empowers developers to create scalable, modular, and maintainable applications. Understanding the principles of encapsulation, abstraction, inheritance, and polymorphism is crucial for harnessing the full potential of OOPs concepts in Java. As you continue your journey in software development, a solid grasp of these concepts will be invaluable in designing efficient and effective solutions.
#javascript#javaprogramming#java online training#oops concepts in java#object oriented programming#education#technology#study blog#software#it#object oriented ontology#java course
3 notes
·
View notes
Text
The Object-Oriented Syntax Of Small Basic
Object - Method - Argument
Small Basic and its object-oriented Syntax
GraphicsWindow is an object built into Small Basic that takes text input and sends text output to your screen. DrawText() is a method of the GraphicsWindow object. This method displays the data passed to it in the output window. When you use GraphicsWindow.DrawText(), you tell the the GraphicsWindow object to execute its DrawText method. This is known as <dot notation> because of the dot between the object and method. Dot notation is used to access an object's method and follows this format:
ObjectName.MethodName(Arguments)
In this example "Hello World!" is an argument to the DrawText() method. It tells the method exactly what you want to write.
< Marji & Price >
Post #194: The OOP-Syntax of Small Basic, 2024.
#programming#coding#programmieren#small basic#coding for kids#education#microsoft#i love small basic#oop#object oriented programming#small basic for ever
4 notes
·
View notes
Text
In my previous post, I talked about a MSVC specific feature where one struct definition could be imported into another struct simply by declaring the imported struct in the other struct.
I discovered this behavior on MSVC because I am working on a way that is user-friendly to code in a more object oriented pattern in C.
I was thinking about class inheritance and how you can access directly to all the super class' members in C++ and I thought that maybe if I was to import a struct into another one I'd get a similar result in C. On Visual Studio it compiles just fine, but the moment you build with a other compiler, it just doesn't work; the compiler doesn't find the members imported from another struct.
I think it's a nice feature to have in places where you want to take a more object oriented approch but want to keep the freedom C gives you.
My approch to OOP in C is to split functionality and state. In the header file, the implementation struct is the struct containing the function pointers the user is expected to use, while the object struct is the states and data the object will hold. Exemple of adder.h:
typedef struct Adder {
int a, b;
} Adder;
const struct IAdder {
void(*ctor)(Adder* this, int a, int b);
int(*result)(Adder* this);
} IAdder;
There should be only one implementation struct per "class" as this is the only instance that should contain the function pointers for class Adder. It should not be modified at anytime during runtime, and so the unique instance is const. Exemple of adder.c:
#include "adder.h"
static void ctor(Adder* this, int a, int b) {
this->a = a;
this->b = b;
}
static int result(Adder* this) {
return this->a + this->b;
}
//We define the unique const instance
//of the implementation struct:
extern const struct IAdder IAdder = {
.ctor = ctor,
.result = result
};
And to use our adder class in main.c:
#include "adder.h"
#include <stdio.h>
int main(int argc, char** argv) {
Adder a = {0};
IAdder.ctor(&a, 3, 5);
int result = IAdder.result(&a);
printf("%i", result);
return 0;
}
9 notes
·
View notes
Text
Very amused every time someone discovers the ultimate way to do OOP in its truest, most polymorphic, most object-oriented form and its just immutable classes with public instance variables and no methods and no inheritance being transformed through singleton classes with no instance variables and one side-effect-free method, potentially taking a function as a parameter or returning another single method class. Brother you just reinvented functional programming.
#codeblr#progblr#object oriented programming#OOP#functional programming#Algebraic data types. Pure functions. Higher order functions. Closures. The gangs all here#And then whenever you tell them that what they did. they say its like functional programming but different because its polymorphic#Literally had a conniption when robert martin said he discovered clojure was actually an oop language because#it was better at polymorphism than java#This is without knowing the subtype polymorphic features in clojure
4 notes
·
View notes
Text
Are you the Visitor pattern? Because I'd let you break my encapsulation ;)
0 notes
Text
what learning java for the minecraft fairy pisshorse does to a mf

#object oriented programming more like OOP I DID A FUCKYWUCKY!!!!#this is like having ocs all over again. you change ONE TINY THING and EVERYTHING ELSE IS WRONG!!!! WOOOO#anyway abstract template classes my beloved#sy.txt
0 notes
Text
https://www.thefullstack.co.in/software-design-patterns/
#SoftwareDesign#DesignPatterns#ProgrammingTutorial#CodeArchitecture#SoftwareEngineering#CodingTips#LearnToCode#DevCommunity#CleanCode#OOP (Object-Oriented Programming)#SOLIDPrinciples
0 notes
Text
Discover the key differences between procedural and object-oriented programming. Enhance your coding skills with our comprehensive guide and practical insights.
#Difference Between Procedural and Object Oriented Programming#procedural programming vs oop#procedural programming vs object oriented programming
0 notes
Text
Udemy, Python, OOP For Beginners And More ...
Post #152: Udemy, Danny Adams, Python OOP, Object-Oriented Programming, From Beginner To Pro, 2024.
#i love coding#coding#programming#learning#education#i love programming#i love python#programming language#python tutorial#learn python#teaching#python coding#python#oop#object oriented programming#udemy
2 notes
·
View notes
Text
https://blogzone.hellobox.co/6922712/deep-dive-into-object-oriented-programming-in-python
#python programming#Object-oriented programming#Python OOP#Polymorphism in Python#Python encapsulation#Data encapsulation#Python course
1 note
·
View note
Text
Getting Started with Python: A Beginner's Guide pt3
In the first two parts of our beginner’s guide to Python, we covered variables, data types, conditional statements, collections, loops, and functions. In this final part, we will delve into more advanced concepts such as libraries, classes, and objects, which will further enhance your Python programming skills. Libraries: Extending Python’s Capabilities Libraries are collections of pre-written…
#Getting started with Python#Introduction to Python programming#Learn Python#Object-Oriented Programming#OOP in Python#Python basics#Python classes#Python for beginners#Python libraries#Python objects
0 notes