Sujet : Re: What is OOP?
De : Ros (at) *nospam* invalid.invalid (Rosario19)
Groupes : comp.lang.c++Date : 04. Dec 2024, 13:14:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <gog0ljdjdhdekscrcbpprte8788aerq05h@4ax.com>
References : 1
User-Agent : Forte Free Agent 1.93/32.576 English (American)
On Mon, 02 Dec 2024 01:17:49 +0800, wij wrote:
There are several understandings:
https://www.quora.com/As-an-experienced-OOP-programmer-in-your-opinion-whats-the-biggest-problem-of-OOP-object-oriented-programming
>
...
OO can have many meaning. I took OO to mean object, the basic entity of the
programming model and the operation of the object. The concept, as foundmental,
has to be solid, practical and easily usable. Otherwise, more codes and efforts
will be needed latter to fix it, making the original goal ,practically, a lie.
IOW, (nearly) a flawless model is all the basics. ...
https://sourceforge.net/projects/cscall/files/MisFiles/ClassGuidelines.txt/download
>
From my view, programming language has to provide a model, so that programmers
know what they are dealing with, to solve the problem (recent C++ seems solving
just syntax problems).
In (my) OOP, 'portability' (or reusable) is first achieved by making the
probramming object compatible (form platform to platfrom or from time to time
in the same platform, but libwy only considers linux, but the idea should be
generally applicable), i.e. like pod types, structures, union may not be portable.
>
Programming object or 'concept' are 'better' represented/wrapped by class (keyword)
All should be simple, I don't know how to make the idea of 'object' more simpler.
See the guidelines.
oop
what is oo programming?
1 definition
object=memory layout and all the label to access to it, even that
layout apply to the pc memory in the machine
oop= programming way use objects and functions and operations on
objects
with this definition even C would be oop, int and all operation with
that would be one object
change definition
2 definition
a object is a memory layout that have a routine for inizialize that
memory (constructor) and one routine for end the object (distructor)
and the programmer can define all the functions and operations to it
and othe objects or types in language
oop is the programming of objects in definition 2