Computer Science, asked by shubhi6254, 4 months ago

16. Point out the error in the following code:
Class Point{
int x, y;
public Point(int a, int b)
{
x=a;
y=b;
}
}
public void geto)
{
Point p= new Point();
............
}​

Answers

Answered by rupendranagesh2
0

Answer:

fvbhbhhhbnkjjjhhbbccffdffdddjjjhdr

Answered by rohitchoubey33
2

the correct syntax for this is:

#include<stdio.h>

#include<conio.h>

public point main()

{

int a;

int b;

................

and then what you have to do you code.

}

Explanation:

there is the mistake of syntax. you have not mention the headerfile and one more important thing that is semicolon.. that mistakes are error.

Similar questions