Comparison of programming languages (object-oriented programming)

This comparison of programming languages compares how object-oriented programming languages such as C++, Java, Smalltalk, Object Pascal, Perl, Python, and others manipulate data structures.ClassName = Class «(ClassParent, Interfaces)» private // Private members(include Methods and Fields) public // Public members protected // Protected members published // Published members end; END CLASS name.The implementation of methods is usually provided in a separate source file, with the following syntax END METHOD foo.How to declare a property named "Bar" END METHOD.METHOD-ID.SET PROPERTY bar.DATA DIVISION.LINKAGE SECTION.value-var declarationPROCEDURE DIVISION USING value-var.
Comparison ofprogramming languagesGeneral comparisonBasic syntaxBasic instructionsException handlingAlgebraic data typesConditional expressionsFunctional instructionsArraysAssociative arraysString operationsString functionsHigher-order functionsType systemsDependent typesList comprehensionObject-oriented constructorsOperatorsEvaluation strategyComparison of ALGOL 68 and C++Compatibility of C and C++Comparison of Pascal and Borland DelphiComparison of Object Pascal and CComparison of Pascal and CComparison of Java and C++Comparison of C# and JavaComparison of C# and Visual Basic .NETComparison of Visual Basic and Visual Basic .NETobject-oriented programmingSmalltalkObject PascalPythondata structuresABAP ObjectsdeleteObjective-CVisual Basic .NETEiffelWindows PowerShellJavaScriptDelphiISLISPprotocolnamespaceconstructordestructorfinalizertypeofcurrent objectparent objectnull referenceCurrent Context of ExecutionObject copyDowncastingtypeiddynamic_castnullptrgarbage collectionmultiple inheritanceheader filedefault constructoroverloadfriend functionfriend classinlineone-linetemplateoperator overloading