Click here to Skip to main content
15,887,267 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: OOP and the scope of a class, am I wrong? Pin
megaadam7-Nov-23 4:35
professionalmegaadam7-Nov-23 4:35 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
honey the codewitch7-Nov-23 4:36
mvahoney the codewitch7-Nov-23 4:36 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
MSBassSinger7-Nov-23 4:53
professionalMSBassSinger7-Nov-23 4:53 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
StatementTerminator7-Nov-23 5:04
StatementTerminator7-Nov-23 5:04 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
honey the codewitch7-Nov-23 5:22
mvahoney the codewitch7-Nov-23 5:22 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Tiger125067-Nov-23 7:43
Tiger125067-Nov-23 7:43 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Roger Wright7-Nov-23 13:12
professionalRoger Wright7-Nov-23 13:12 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Ralf Quint8-Nov-23 12:28
Ralf Quint8-Nov-23 12:28 
Reading through all the responses just confirms to me that today nobody really understands anymore what OOP was supposed to be.
And yes, the basic concept of OOP doesn't have a single "inventor", most certainly not Stroustrup, he is rather guilty of obfuscating the whole thing. People that had influence on the initial development of the OOP concept would rather be Alan Kay, Edsger Dykstra and Nikolaus Wirth.

As for the scope of a class, it is quite difficult to give a quick example, but for the way I learned OOP, you professor would be wrong. Code abstraction is certainly one of the initial intends of OOP, but one of the fallacies that some people are going overboard with the level of abstraction. A single method and/or properties is just leading to obfuscation of the overall code, specially if that resulting class is used only in a single instance. Code abstraction is intended to help with the safely being able to reuse code and ease maintenance. Abstracting too much and you are just ending up in inheritance hell. That different implementations in different programming languages have different approaches to this is what makes OOP as it is often implemented today such a PITA...
GeneralMedievalist Coding Movement? Pin
raddevus6-Nov-23 4:49
mvaraddevus6-Nov-23 4:49 
GeneralRe: Medievalist Coding Movement? Pin
Maximilien6-Nov-23 5:06
Maximilien6-Nov-23 5:06 
JokeRe: Medievalist Coding Movement? Pin
Daniel Pfeffer6-Nov-23 5:27
professionalDaniel Pfeffer6-Nov-23 5:27 
GeneralRe: Medievalist Coding Movement? Pin
Nagy Vilmos6-Nov-23 5:40
professionalNagy Vilmos6-Nov-23 5:40 
GeneralRe: Medievalist Coding Movement? Pin
Dave Kreskowiak6-Nov-23 6:32
mveDave Kreskowiak6-Nov-23 6:32 
GeneralRe: Medievalist Coding Movement? Pin
fgs19636-Nov-23 7:29
fgs19636-Nov-23 7:29 
GeneralRe: Medievalist Coding Movement? Pin
Nelek6-Nov-23 8:40
protectorNelek6-Nov-23 8:40 
GeneralRe: Medievalist Coding Movement? Pin
Gerry Schmitz6-Nov-23 8:07
mveGerry Schmitz6-Nov-23 8:07 
GeneralRe: Medievalist Coding Movement? Pin
Nelek6-Nov-23 8:41
protectorNelek6-Nov-23 8:41 
GeneralRe: Medievalist Coding Movement? Pin
jschell6-Nov-23 11:18
jschell6-Nov-23 11:18 
GeneralRe: Medievalist Coding Movement? Pin
Gerry Schmitz6-Nov-23 11:35
mveGerry Schmitz6-Nov-23 11:35 
GeneralRe: Medievalist Coding Movement? Pin
jschell7-Nov-23 5:30
jschell7-Nov-23 5:30 
GeneralRe: Medievalist Coding Movement? Pin
jschell6-Nov-23 11:06
jschell6-Nov-23 11:06 
GeneralRe: Medievalist Coding Movement? Pin
Gerry Schmitz6-Nov-23 11:48
mveGerry Schmitz6-Nov-23 11:48 
GeneralRe: Medievalist Coding Movement? Pin
PIEBALDconsult6-Nov-23 15:50
mvePIEBALDconsult6-Nov-23 15:50 
GeneralRe: Medievalist Coding Movement? Pin
PIEBALDconsult7-Nov-23 3:46
mvePIEBALDconsult7-Nov-23 3:46 
GeneralRe: Medievalist Coding Movement? Pin
raddevus7-Nov-23 9:00
mvaraddevus7-Nov-23 9:00 

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.