Questions tagged [OOP] (1357)

5
answers

To for Java?

Never really liked to make the code in static methods, doing it usually, if he does without it. And here thinking and I can't find the correct answer to, it seems to me, quite an easy question. Does it make sense (for resources, or performance ?) in the transformation:public class A { private final int a; private final Ma...
elias.Waelchi3 asked October 14th 19 at 11:36
7
answers

Advise books on C++, STL, OOP, patterns

Basic knowledge of C++ already have, even wrote some applications. But it was all done by the method of scientific spear. I would like to study in depth the language and patterns inherent in C++. It is desirable that the book was written in easy and simple language, with exercises on each topic, so it is better to digest th...
Modesta_Colli asked October 14th 19 at 10:41
8
answers

Exemplary PHP web applications with open source tools for learning?

Looking for web app source code which will help in self-learning.
ryley_Welch asked October 10th 19 at 14:52
3
answers

Dynamic arrays inside of classes in Object Pascal

How to describe inside a class of dynamic array? You need something like this: type<br> myclass = class<br> private<br> n: integer;<br> a: array[0..n] of integer;<br> public<br> constructor create(n_ : integer);<br> end; This code swears that it is not n — not described.
Willard.Zula asked October 10th 19 at 11:10
6
answers

Tell me examples of good implementation of MVC design pattern in php

What to read? Thanks in advance.
Dan_Botsford asked October 10th 19 at 08:32
1
answer

Design module to work with various social services

Hello. Although I have some ideas about the optimal architecture of such a module, I want to consult you, since not really sure of the correctness of these considerations. The point is that you need to design an independent module to work with multiple social networks and services via OAuth so that this module is easily ext...
Linnea_Langworth asked October 10th 19 at 07:53
1
answer

Why main method is executed without creating an object of a class in OOP languages?

public class test { public static void main(String[] args) { System.out.println("Hello"); } } 1. How is the test class where the main method, the starting? 2. Why main method is executed without creating an object (instance of a class) start of class? Because in all other cases, if desired, to execute the method need to ...
Cyrus_Padbe asked October 10th 19 at 06:54
6
answers

How to use OOP?

Hi all. Just started learning Perl, but that's not the point. In programming, a self-taught, and I have a problem I do not really understand how to use OOP. Here's an example, there are the pricer module.pm which has a set of methods for the calculation of any price value the subject. For example, the function calc_total()...
Ethan.Fadel98 asked October 10th 19 at 05:39
1
answer

UML diagram(s) web projects?

Good link, Habra-community! In my re-design and under-programming the brain, the idea of documenting the philosophy (read, methods) object-oriented design. Yes, it is creating "layouts", "GUI whales" and so on for the view logic. I need your help, I am sure that there are specialists having experience (files) UML diagram (t...
Kyle_Larson17 asked October 10th 19 at 05:09
5
answers

The naming of the classes?

Good afternoon. In the development of one system are faced with the question of naming classes in complex cases. The problem is that in the class hierarchy individual element does not always have only one "ancestor" (not only in terms of inheritance ("flower inherited from the plants"), but in the more General "the flower h...
patience_Prohas asked October 10th 19 at 03:55