Tagged Questions
4
votes
1answer
97 views
Merging with different modules
We have an action merge for two projects. In the projects we have different modules like Feed, Files, Post etc....
...
2
votes
3answers
74 views
Raising error if method not overridden by sub-class
Background
I have a base (only 2 classes inherit from it, and only from it) abstract (meaning I don't want it to be used directly) class that implements some common functionality.
Some of it depends ...
6
votes
2answers
221 views
Class for printing class hierarchy as text
I'm coding a little class hierarchy printing tool for easy show hierarchies of java classes.
This is my current code:
...
3
votes
1answer
66 views
Get Ancestor Class Name that Defines CONST in PHP?
I have a class hierarchy in PHP and in some of the parent classes I have defined a constant, let's assume that constant is called TYPE for my example.
I want to ...
1
vote
0answers
124 views
Do I need inheritance or no?
I'm using Pygame to create a small game with few rectangle shapes. However, I want to learn more about classes, and I'm trying to use them. I'm very new to classes and inheritance, but I want to ...
3
votes
2answers
164 views
Trying to use classes in my python code. Not sure if being done correctly
The point of my code is to:
Read in the observed data from the a catalog of stars (whitespace separated table).
Do some unit conversions on the observed data (math stuff).
Apply an interstellar ...
3
votes
2answers
319 views
Classes and variables in PHP
First of all, I'm trying to learn OOP PHP, so any advise will be great.
My idea is to create some kind of MVC Framework CMS kind of thing, just to learn OOP PHP and MVC well.
Let's say that I've got ...
12
votes
1answer
317 views
Is splitting to small classes good?
I have materials:
class Material {...};
class ConcreteMaterialA : public Material {...};
class ConcreteMaterialB : public Material {...};
I want it to have a ...