---
title: "Discussion on \"侯捷cpp-oop(上) 笔记\" | Hashnode"
description: "Discussion on \"侯捷cpp-oop(上) 笔记\". 头文件与类声明\nClasses 两个分类\n\nClass without pointer member(s): complex\n\nClass with pointer member(s): string\n\n\n也可以分为\n\nObject-Based vs Object Oriented\n\n构造函数\ninline函数\n函数如果在 class 内定义完成，则自动成为 inline 候选人.\n也可以在class 外部定义，方法需要增加inline 关键字。\nconstructor(ctor, 构造函数)\n..."
url: "https://hashnode.com/posts/hjcpp-oop-1/64d84ef49c2eec7185856b47"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [侯捷cpp-oop(上) 笔记](https://qilingzhao.com/hjcpp-oop-1?utm_source=hashnode&utm_medium=feed)

头文件与类声明 Classes 两个分类 Class without pointer member(s): complex Class with pointer member(s): string 也可以分为 Object-Based vs Object Oriented 构造函数 inline函数 函数如果在 class 内定义完成，则自动成为 inline 候选人. 也可以在class 外部定义，方法需要增加inline 关键字。 constructor(ctor, 构造函数) ...

Aug 13, 2023 · 5 min read · qilingzhao.com  
Read the article

-   [#cpp-note](https://hashnode.com/tag/cpp-note)
-   [#hj-cpp](https://hashnode.com/tag/hj-cpp)

## Written by

[qilingzhao](https://hashnode.com/@Zhao70)

@Zhao70

  
[View profile](https://hashnode.com/@Zhao70)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
