⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 object.h

📁 MONA是为数不多的C++语言编写的一个很小的操作系统
💻 H
字号:
// This software is in the public domain.
// There are no restrictions on any sort of usage of this software.

#ifndef __SYSTEM_OBJECT_H__
#define __SYSTEM_OBJECT_H__

#include <gui/System/String.h>

namespace System
{
	class Object
	{
	private:
		int refCount;
	
	public:
		virtual String get_TypeName() { return "System.Object"; }
		virtual String ToString() { return this->get_TypeName(); }
		Object() : refCount(0) {}
		virtual ~Object() {}
		inline int get_RefCount() { return this->refCount; }
		inline int* get_RefCountPtr() { return &this->refCount; }
	};
}

#endif  // __SYSTEM_OBJECT_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -