For Business
Login
Home
Assessments
Mytat Certificates
Community
Courses
Premium Courses
jobs
Practice
Upskilling
Projects
Help
Run >>
PHP
Visual Basic.Net
SQL (SQLite 3.27.2)
Scala
Rust
Ruby
R
Python for ML
Python (3.8.1)
Python (2.7.17)
Perl (5.28.1)
C (GCC 9.2.0)
C#
C++ (GCC 9.2.0)
Go
Groovy (3.0.3)
Java
JavaScript / Node.js
Kotlin
Lua
Objective-C
#include
using namespace std; class MyClass { // The class public: // Access specifier void myMethod(); // Method/function declaration }; // Method/function definition outside the class void MyClass::myMethod() { cout << "Hello World!"; } int main() { MyClass myObj; // Create an object of MyClass myObj.myMethod(); // Call the method return 0; }