a)
class S1
{
static
function 1(int x)
{
return x * 5.5;
}
public static void main()
{
ans;
ans = function 1(2);
System.out.println(ans);
}
Output:
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
class Test
{
static int x;
public:
Test() { x++; }
static int getX() {return x;}
};
int Test::x = 0;
int main()
{
cout << Test::getX() << " ";
Test t[5];
cout << Test::getX();
}
Answered by
0
Answer:
mat lab kuch de irubriine
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
Computer Science,
10 months ago
Math,
10 months ago