S
S
Satehill2021-07-25 14:11:48
C++ / C#
Satehill, 2021-07-25 14:11:48

How to organize such a record using a class?

I want to make a conclusion for the fan as in C#. // System is the class name

System.out.printIn("Hello");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2021-07-25
@Satehill

System is a global class instance that contains an out member that has a println method.

class SystemType {
public:
  class Out {
      public: void println() {
          cout << "haha";
      }   
  } out;
} System;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question