Object Oriented Programming
Object-Oriented Programming Key Ideas Class Inheritance Polymorphism Early and Late Binding Virtuality override final Template method Destructor Interfaces Liskov substitution principle /destructor Slicing ShadowingPolymorphism Polymorphism (poly morphs) is the characteristic of an object to behave differently at run time. Polymorphism ▪ Inheritance is the base of polymorphism ▪ Enables separation of the interface and its implementation is one of the crucial ideas of modern software design.Object-Oriented Programming Key Ideas Class Inheritance Polymorphism Early and Late Binding Virtuality0 码力 | 38 页 | 752.99 KB | 5 月前3Object Lifetime: From Start to Finish
Object Lifetime From Start to Finish Thamara Andrade | https://thamara.dev/34 Me finally understanding why my code was failing… ... and realizing I didn’t really understand the rules for object object lifetime.What is object lifetime anyway? 567You can expect… but not… •Review of object lifetime •(A Little of) RAII •Beyond basic lifetime •Common pitfalls •Value categories •Unions/Arrays •Any Initialization68 { Resource Acquisition Is Initialization Tying resource acquisition and deallocation to object lifetime.69 { struct DynamicArray { explicit DynamicArray(size_t sz) : m_d(new int[sz]) {} ~DynamicArray()0 码力 | 214 页 | 9.34 MB | 5 月前3SVG Test Document
inkscape:window-width="2560" showgrid="false" inkscape:document-rotation="0" inkscape:current-layer="layer1" inkscape:document-units="mm" inkscape:cy="471.3062" inkscape:cx="4150 码力 | 5 页 | 11.74 KB | 5 月前3Back to Basics: Object-Oriented Programming
Andreas Fertig Write unique code! Back to Basics Object-Oriented Programming Presentation Material CppCon, Aurora CO, 2024-09-20© 2024 Andreas Fertig AndreasFertig.com All rights reserved All programs com post@AndreasFertig.com 5A class ■ C++ adds classes for object-oriented programming. ■ The constructors B are called when the object is cre- ated. ■ Data fields of classes should be initialized Flush() override { puts("USBC Flush"); } 15 }; 16 17 int main() 18 { 19 A Note, I’m creating a USBC object and store it as IOPort 20 std::unique_ptrport{std::make_unique ()}; 21 22 port−>Flush(); 0 码力 | 20 页 | 1.04 MB | 5 月前3Object Pascal 参考手册(Ver 0.1)
Object Pascal 参考手册 (Ver 0.1) ezdelphi@hotmail.com Overview - 1 - Overview(概述) Using object pascal(使用 object pascal) Object Pascal 是一种高级编译语言,具有强类型(对数据类型的检查非常严格)特性,支持结构化 严格)特性,支持结构化 和面向对象编程。它的优点包括代码的易读性、快速编译,以及支持多个单元文件从而实现模块化编程。 Object Pascal 具有一些特性以支持 Borland 组件框架和 RAD(快速应用程序开发)环境。在很大程 度上,本语言参考的说明和示例假定你使用 Borland 公司的开发工具,如 Delphi 和 Kylix。 绝大多数使用 Borland 开发工具的开发者是在 具在程序的组织上还有一些限制,严格说来,这不是 Object Pascal 语言规范的一部分。比如,Borland 开发工具遵循某些文件和程序的命名约定,若你在 IDE 以外编写代码并使用命令行来编译,你可以避开 这些限制。 这些帮助主题假设你在 IDE 环境下工作,并且使用 VCL(可视化组件库)和/或 CLX(跨平台组件 库)创建应用程序。但有时候,Borland 一些特定的规则和 Object Pascal 的通用规则并不相同。0 码力 | 168 页 | 868.25 KB | 1 年前3Object Introspection: A Revolutionary Memory Profiler for C++ Objects
std::stringObject Introspection (OI) Goals • Byte level memory footprint analysis for objects • Complete object type hierarchies • Dynamic allocations and containers • Optimised, production applications in Generation • Object Introspection as a Library • Object Introspection as a Profiler • Object Introspection Applied Type Reconstruction Object Introspection• (Re)construct an entire object hierarchy Reconstruction • Code Generation • Object Introspection as a Library • Object Introspection as a Profiler • Object Introspection Applied Type Reconstruction Object Introspection Measurement Code0 码力 | 62 页 | 2.24 MB | 5 月前3Reference manual for FPDoc Document version 3.2.2
Reference manual Reference manual for FPDoc Document version 3.2.2 May 14, 2021 Michaël Van Canneyt Contents 1 Introduction 5 1.1 About this document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 4 Chapter 1 Introduction 1.1 About this document This is the reference manual for FPDOC, a free documentation tool for Pascal units. It describes process. The latex file contains no document preamble, it starts with a chapter command. It is meant to be included (using the LaTeX include command) in a latex document with a preamble. The output of FPDOC0 码力 | 47 页 | 196.25 KB | 1 年前3Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views
0 码力 | 127 页 | 2.06 MB | 5 月前3Document version 3.2.2
Run-Time Library (RTL) : Reference guide. Free Pascal version 3.2.2: Reference guide for RTL units. Document version 3.2.2 May 2021 Michaël Van Canneyt Contents 0.1 Overview . . . . . . . . . . . . . . TObject.Free . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1189 67.14.5 TObject.Is_Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1189 67.14.6 TObject.Done . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2189 138 CONTENTS About this guide This document describes all constants, types, variables, functions and procedures as they are declared in the0 码力 | 2191 页 | 4.93 MB | 1 年前3Document version 3.2.2
Free Component Library (FCL): Reference guide. Reference guide for FCL units. Document version 3.2.2 May 2021 Michaël Van Canneyt Contents 0.1 Overview . . . . . . . . . . . . . . . . . . . . . . This document describes all constants, types, variables, functions and procedures as they are declared in the units that come standard with the FCL (Free Component Library). Throughout this document, we tree. TObjectSortCompare = function(Tree: TAVLTree; Data1: Pointer; Data2: Pointer) : Integer of object 96 CHAPTER 2. REFERENCE FOR UNIT ’AVL_TREE’ TObjectSortCompare is the prototype for the TAVLTree0 码力 | 953 页 | 2.21 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100