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
0
Answer:
fvbhbhhhbnkjjjhhbbccffdffdddjjjhdr
Answered by
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