Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [oop]

Object-oriented programming is a programming paradigm using "objects": data structures consisting of data fields and methods together with their interactions.

0
votes
0answers
8 views

How to untangle a data class where annotations from different frameworks mix?

The framework mix problemI'm using two frameworks -- PingIdentity's SCIM 2 SDK and Spring LDAP -- to deserialise a SCIM resource (i.e. JSON) to a Java object then write it to an LDAP directory, and ...
0
votes
0answers
29 views

Python class method executing multiple times

I am new to OOP and class inheritance in Python. I am working with a Pandas dataframe, extracting information from a "cell", removing the information from the cell in which it was found, and putting ...
3
votes
2answers
24 views

Built-in function to special method name for dictionary conversion

I've been delving into operator overloading and special methods within Python classes, and I noticed that many built-in functions have their equivalent special method names:int(x) calls x.__int__()...
-1
votes
1answer
18 views

Code style - how do I glue my modules together?

I have modules that do things, for example a settings class and WiFi manager class.These are kind of re-usable (in theory).But then I struggle to work out where the "glue code" should go.For ...
0
votes
0answers
8 views

Class Design of a meeting scheduler using OO principles

What would be the sample class design of Outlook like meeting scheduler?This should help you to schedule a meeting with the rest of the invitees and book a room as we do in offices.Few things I ...
-1
votes
2answers
19 views

Saving objects to a Data Structure or a File in JAVA

LangaugeJavaApplication:Patient Viewer/CreatorQuestionHow should I handle the objects being created?What are the negatives of saving Patient objects to a structure as they are being created?...
-1
votes
4answers
28 views

java initialize base class fields in subclass constructor

This is a very basic question about subclasses in java, I still don't get it...Suppose I have a superclass with three fields and with only the default constructor:public class Superclass {...
-4
votes
2answers
17 views

code for reading the grades and remove the ones below the average - Qeustion

i faced a problem with arraylist. I wrote a simple program which takes the grades and remove the ones below the average! However, it's not working and I couldn't figure where the problem is. I would ...
-1
votes
0answers
32 views

How to code a java method to store one specific bird species? [duplicate]

My task is to code the method addBird (String art, String location). The program should only be able to store one specific bird species. That is, if the bird watcher has already added the bird species ...
-1
votes
3answers
93 views

Is Polymorphism same in JAVA & C++? [on hold]

Since I am learning OOP in Java, I know some people who are proficient in OOP in C++, so when I have a problem, I refer to them for help in OOP concepts.But I have noticed one thing that people, ...
-4
votes
0answers
44 views

What is the best practice when I have a child class in which the parent class is one of two? [on hold]

public class User{int age,....@OneToManyAdditionalInfo info}public class Organization{String name,....@OneToManyAdditionalInfo info}public class ...
0
votes
1answer
26 views

Django rest framework inheriting a class from Serializer and making it abstract

I'm using Python 3.6 with Django 1.11.9 and rest_framework 3.6.2.I want to inherit from serializers.Serializer to make a SharingSerializer class, that I want to be abstract, because I want to ...
-1
votes
1answer
35 views

refactoring my method into two classes (php)

I have a class with method:class Frontend implements SubscriberInterface{public static function getSubscribedEvents(){return ['...
1
vote
3answers
30 views

Java transient runtime improvements?

In my project there is no saving or loading. A new object is created every login.Therefore technically every field acts as if it were transient. But if I were to name them all transient too, i.e ...
0
votes
1answer
32 views

Using OOP with PDO

I am using a class that fetches information from a database and shows that information in a table, along with an edit and delete button. When I click the edit or delete button, I want to add $_GET['id'...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,