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

0
votes
0answers
16 views

Multiple classes wrapped to one Main

I have written individual programs that need to be wrapped in one program, instead of one long code file. There is a detector and a recognizer, and the main program is responsible for taking an image, ...
-3
votes
1answer
44 views

What is the exact difference between abstraction and encapsulation in C++ [duplicate]

C++: Difference between abstraction and encapsulation in c++I have seen some answers on this topic but I want to know the difference by an example which relates to the theoretical concept of these ...
-2
votes
1answer
36 views

I need help in designing my C++ Console application

I have a task to complete. There are two types of csv files 4000+ both related to each other.2 types are:1. Country2.csv2. Security_Name.csvContents of Country2.csv:Company Name;Security Name;;;;...
-3
votes
0answers
17 views

Doodle jump game design [on hold]

I am trying to make a Doodle Jump game in c++using sfml. I decided to use the STRATEGY pattern as seen in the UML attached to move all the objects.i would like to know what you all think of this. Also,...
0
votes
1answer
41 views

Dynamically extend a class which returns the newly created class

I'm not sure if the title question is exactly what needs to be done, but I'll explain. I have two classes Tile and extendTile. I want extendTile to create a new instance of Tile under a different ...
-1
votes
0answers
25 views

Exposing a functionality : Library vs Web-Service (REST)

While building distributed applications, we often evaluate the library vs Web-Service paradigm. What are the questions which should be asked while making a choice between the two. ('I have been told ...
0
votes
2answers
45 views

C++ Inheritance: Do I have to repeat parent attributes in derived classes?

If I separate my classes into header/implementation files, is it possible to have inheritance without needing to redeclare inherited attributes in the child class?Let me clarify with an example. Why ...
1
vote
1answer
29 views

Calculating 50th percentile in PostgreSQL

I have a table containing 100 thousand rows of the following format: UserID - Rank - Value - Primary Key1236 ----- 00 ---- 233.4 -------- 11377 ----- 00 ---- 150.6 --------...
1
vote
1answer
129 views

Why a declaration doesn't give a CS0201 compiler error?

I am confused by the terminology of Compiler error CS0201. It says thatOnly assignment, call, increment, decrement, and new objectexpressions can be used as a statementSo according to this ...
0
votes
0answers
17 views

Paradigm “program to interfaces, not implementations” vs. builder pattern

I like the builder pattern (example http://stackoverflow.com.mevn.net/a/1953567) for various reasons, e. g. the fact that I can work with immutable objects and that I can control the object creation in the ...
0
votes
0answers
22 views

Python nested for loops with object arrays [duplicate]

So, im creating nodes (2 input and 2 output). And I want to connect those nodes with links. for this I have the class Node and the class Link.class Node:all_link_incoming=[]...
2
votes
2answers
68 views

Structuring a class with optional parameters

While reading this page about the builder pattern, I noticed the class contained optional parameters. Example:public static class Builder {// Required parametersprivate final int ...
5
votes
1answer
32 views

Overriding method call operator or some other way to catch method name resolution errors

I am trying to write an example for the X::NYI class as a response to this issue. I have come up with something like this:class Nothing {sub postfix:<.&>( $sub, **@args) {die ...
1
vote
3answers
40 views

Benefit of defining global variable over local, in respect to memory management

In java we know the different scope of class level and method level variables.I want to have a better idea of memory managment.can any one tell me what is the benefit of using method ...
2
votes
3answers
60 views

Assign property value automatically from other properties within an object

I have the following Classpublic class BlogPost{public int BlogPostId { get; set; }public string BlogPostTitle { get; set; }public string BlogPostDescription { get; ...

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