language-concepts Questions

1

Solved

C# 9 added the record type, which is a new reference type that uses value-based equality. C# 10 introduced the record struct syntax to define a value type with similar properties to record (https:/...
Windproof asked 22/12, 2022 at 18:6

16

I am getting started with Object-Oriented Programming (OOP) and would like to know: what is the meaning of serialization in OOP parlance?

7

Solved

I'd like to build an OO hierarchy of errors and warnings returned to the client during a, let's say, pricing operation: interface PricingMessage {} interface PricingWarning extends PricingMessage...
Openeyed asked 16/1, 2014 at 16:0

2

Solved

I´ve found a comment of user R..: C and C++ are not the same language. In particular, C const has nothing to do with C++ const. I know, that one difference between the const qualifier in C and...

1

Solved

How is a variable stored in a computer memory ? For example: when we specify int x = 15; Typically the computer in its ram allocates a 4 bytes chunk of memory, storing the value 15 in the form o...
Ramirez asked 24/12, 2018 at 5:58

7

Solved

I'm reading Programming Scala. At the beginning of chapter 4, the author comments that Java supports static methods, which are "not-so-pure OO concepts." Why is this so?
Cigar asked 23/10, 2010 at 2:46

4

Solved

The below code summarises all the numbers in the list held in all_numbers. This makes sense as all the numbers to be summarised are held in the list. def firstn(n): '''Returns list number range f...
Inset asked 18/6, 2017 at 10:15

4

I am a beginner in C . I have recently learned about 2's Complement and other ways to represent negative number and why 2's complement was the most appropriate one. What i want to ask is for examp...

3

Solved

In introductory books on C it is often claimed that pointers more or less are arrays. Isn't this a vast simplification, at best? There is an array type in C and it can behave completely diff...
Transcendence asked 24/2, 2016 at 8:33

2

Solved

I'm an old-time programmer from the 80s proficient with C and Pascal. I'm pretty new to Java and its concept. In trying to learn the new ways of Java using OOP techniques I'm rather confused about ...
Willams asked 14/11, 2014 at 15:55

1

Solved

I am studying a sample Go application that stores data in mongodb. The code at this line (https://github.com/zeebo/gostbook/blob/master/context.go#L36) seems to access a user ID stored in a g...
Owens asked 30/6, 2014 at 14:47

2

Solved

If you have the object Dictionary<k, v> myDictionary, then myDictionary.Values will be of type Dictionary<k, v>.ValueCollection and myDictionary.Keys will be of type Dictionary<k, v&...
Barium asked 23/4, 2013 at 14:19

10

Solved

Ok, so I've been doing Delphi Programming for 3-4 years now and consider myself an intermediate-level application designer with a sound understanding of concepts. But how do I get better? I've just...
Ibidem asked 16/2, 2011 at 0:32

3

Solved

Is there a way, in R, to pop up an error message if a function uses a variable not declared in the body of the function: i.e, i want someone to flag this type of functions aha<-function(p){ re...
Shine asked 26/1, 2010 at 16:51
1

© 2022 - 2024 — McMap. All rights reserved.