prog.cpp:3:17: error: expected unqualified-id before ')' token
class LandTract()
^
prog.cpp:11:16: error: expected initializer before '::' token
int LandTract()::area(int l,int w)
^
prog.cpp: In function 'bool isEqualSize(LandTract, LandTract)':
prog.cpp:15:28: error: 'ab1' has incomplete type
bool isEqualSize(LandTract ab1,LandTract ab2)
^
prog.cpp:3:7: note: forward declaration of 'class LandTract'
class LandTract()
^
prog.cpp:15:42: error: 'ab2' has incomplete type
bool isEqualSize(LandTract ab1,LandTract ab2)
^
prog.cpp:3:7: note: forward declaration of 'class LandTract'
class LandTract()
^
prog.cpp:19:5: error: 'else' without a previous 'if'
else
^
prog.cpp: In function 'int main()':
prog.cpp:24:15: error: aggregate 'LandTract ob1' has incomplete type and cannot be defined
LandTract ob1;LandTract ob2;
^
prog.cpp:24:29: error: aggregate 'LandTract ob2' has incomplete type and cannot be defined
LandTract ob1;LandTract ob2;
^