Quantcast
Viewing latest article 10
Browse Latest Browse All 10

Static clause initialization

This is an example of how to make a static clause initialization. In order to do so, we have created two classes as described below: We have a class A that has a method func(int val) that prints the given int value. We also have a class B, that has two static A objects and ...

Viewing latest article 10
Browse Latest Browse All 10

Trending Articles