Click here to Skip to main content
15,885,773 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 7:51
User 1493685313-Dec-20 7:51 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1106097913-Dec-20 7:52
User 1106097913-Dec-20 7:52 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 4:00
User 1493685313-Dec-20 4:00 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
honey the codewitch13-Dec-20 4:08
mvahoney the codewitch13-Dec-20 4:08 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 7:02
User 1493685313-Dec-20 7:02 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 4:05
mveRichard MacCutchan13-Dec-20 4:05 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1106097913-Dec-20 7:57
User 1106097913-Dec-20 7:57 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 8:20
mveRichard MacCutchan13-Dec-20 8:20 
No, that is the whole point. A proper OOP language begins with the class, and everything proceeds from there. Without the class nothing will work. In C++ the class is just an extra that you can use or not as you like. So you can write C++ code that conforms (more or less) to the rules of OOP, but you can also just ignore them.
As an example:
C#
// in C# or Java you must have the following as a minimum:
class Mainclass
{
    static void Main(string[] args)
    {
        // do something starting here
    }
}

C++
// in C++ you have
int main(int argc, char* argv[])
{
    // do things here.
    // BUT: this is the earliest point that you can instantiate a class
    // AND: if you do not create any classes your code will be fine.

    return 0;
}

GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1106097913-Dec-20 9:17
User 1106097913-Dec-20 9:17 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 9:48
mveRichard MacCutchan13-Dec-20 9:48 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Espen Harlinn13-Dec-20 14:28
professionalEspen Harlinn13-Dec-20 14:28 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 21:49
mveRichard MacCutchan13-Dec-20 21:49 
AnswerRe: If I find another programming language easier should I stay with it instead? Pin
Espen Harlinn14-Dec-20 13:09
professionalEspen Harlinn14-Dec-20 13:09 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Rusty Bullet14-Dec-20 3:20
Rusty Bullet14-Dec-20 3:20 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 3:21
mveRichard MacCutchan13-Dec-20 3:21 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 3:47
User 1493685313-Dec-20 3:47 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 4:03
mveRichard MacCutchan13-Dec-20 4:03 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 4:06
User 1493685313-Dec-20 4:06 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 4:08
mveRichard MacCutchan13-Dec-20 4:08 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Nelek13-Dec-20 9:10
protectorNelek13-Dec-20 9:10 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 9:46
mveRichard MacCutchan13-Dec-20 9:46 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Nelek14-Dec-20 3:26
protectorNelek14-Dec-20 3:26 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 4:11
User 1493685313-Dec-20 4:11 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
BillWoodruff13-Dec-20 4:27
professionalBillWoodruff13-Dec-20 4:27 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 6:58
User 1493685313-Dec-20 6:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.