Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
90 views

I was debugging some legacy code and while doing that found some inconsistency in the address of this pointer in the class hierarchy like this: #include <cstdio> #include <vector> class ...
Ameya Babhulgaonkar's user avatar
2 votes
3 answers
936 views

I am trying to figure out where should the diamond be placed in this example, I understand its a has-a relationship and diamond should be placed to indicate the whole and part relationship. I have ...
gummyoreo's user avatar
-2 votes
1 answer
42 views

ps: I dont want to acess a parent class var but rather an actual child class How do I access the $table var from User class? I know it sounds silly but is there a way to access this child class var ...
Jeú Casulo's user avatar
0 votes
1 answer
71 views

I have encountered this scenario several times but I couldn't find a definitive answer on the optimal way to manage it. Here's the issue. I have a Java 21 backend application that provides a React app ...
rossilor95's user avatar
-1 votes
1 answer
61 views

I have searched about this topic everywhere that what's the difference between abstraction and encapsulation , even one of the most voted stack overflow question , but at the end it seems confusing ...
RISHABH SHANDILYA's user avatar
1 vote
1 answer
77 views

Is there any elegant and easy way to trace all the call stacks in Python of a library for debugging or code understanding purposes? Suppose there is a very big huge library that I'm importing and need ...
Abhas Kumar Sinha's user avatar
1 vote
1 answer
140 views

After a few years I'm trying to get back to programming and therefore i am trying to programm a relatively simple app in android studio. Im still at the part of thinking how the programm should be ...
Walter's user avatar
  • 11
0 votes
1 answer
322 views

With object-oriented programming in mind, how does the database come into play with objects? Like for example, let's say there is a Student class, with attributes like name, number, courses, etc The ...
Alexeia's user avatar
  • 33
0 votes
1 answer
43 views

What's the name of the code smell committed by the following code. I try to google around to find the de-facto name of the following code smell to no avail. The reason why I'm searching for it is ...
caramel1995's user avatar
  • 3,065
0 votes
1 answer
38 views

I have a common reader for three different classes, but there is some code duplication because the reader has different methods for each of the classes A, B, and C. Is there anyway I can make the code ...
KII's user avatar
  • 1
0 votes
2 answers
907 views

I am new to Salesforce Development/Apex and am running practice exercises. When I run this code thru the 'Anonymous Apex' window, it throws an error reading: "Unexpected token 'Public'. " ...
Lucious Jackson's user avatar
1 vote
1 answer
74 views

I am trying to get all links with pagination. I am using selenium. Since there is more than ten thousand data, it will take time to get all links and some informations in it. I want to use pagination. ...
Kaan Turgay's user avatar
2 votes
1 answer
100 views

I declared a few geometric figures types such as: typedef struct s_sphere{ t_tuple origin; double radius; } t_sphere; typedef struct s_cylinder{ t_tuple origin; double height; ...
BobDeTunis's user avatar
1 vote
1 answer
417 views

According to "Head First Object-Oriented Analysis and Design", Complex projects involves first finding a feature list -> drawing use case diagrams -> breaking into smaller modules ...
coderLane's user avatar
0 votes
0 answers
30 views

I am relatively new to python and I am struggling with building this speed type tester, I am not sure as to why I can seem to change the value of ''time_over'' from false to true in the first function,...
TwinkleTwinkle's user avatar
0 votes
1 answer
177 views

class Airport: def __init__(self, code, city, country): self._code=code self._city=city self._country=country def __repr__(self): return "%s(%s,%s)"%(...
Maggie Lau's user avatar
0 votes
0 answers
89 views

enter image description hereI have defined some classes and two of them Called "Global" &"GlobalFlag". All the classes are in one folder and same path. But in another related ...
Milad's user avatar
  • 1
0 votes
0 answers
27 views

so i have a class phone where we find the attributes : brand --> str, model--> datetime, price--> float, quantity: int this is my code so far the class parent from datetime import datetime ...
proxyy's user avatar
  • 11
0 votes
1 answer
284 views

So, I have this code, and it calculates an OTP(value) each time I click on Button(OTP), and that value is showed on myLabel. However, when it is displayed the values are getting accumulated, E.g. if I ...
Anthony J. B.'s user avatar
0 votes
0 answers
78 views

I am learning Object Oriented Programming. I wrote the following simple program, but I don't follow why the call b->derived_function(); doesn't work. I understand the base class Base does not ...
R Karandikar's user avatar
4 votes
2 answers
205 views

In my project, I have this special function that does needs to evaluate the following: State -- represented by an enum -- and there are about 6 different states Left Argument Right Argument Left and ...
kohrhea's user avatar
  • 171
0 votes
0 answers
49 views

This is the result of Integration testing! Message: N/A Stack trace: org.opentest4j.AssertionFailedError: expected: <Songs Loaded successfully 1 Kiran Playlist ID - 1 Playlist ID - 2 Delete ...
ritik shrivastava's user avatar
0 votes
0 answers
55 views

I have an event processing use case where I am using templates for various kinds of logic involved during event processing e.g transaction handling, processing template based on events e.g update, ...
user3239193's user avatar
0 votes
0 answers
70 views

I am trying to make a videogame that is similar to "Turing Complete". In this game you are supposed to connect circuit pieces to create a computer by the end. So I have a question on ...
Photon Microscope's user avatar
-1 votes
1 answer
52 views

This method I created public class Use { private String firstname; String lastname; public String output() { return "Hii my name is " + firstname + ...
Kartik Gulati's user avatar

1
2 3 4 5
12