C: there are no methods in C.
C++: no.
In C++ all names (including variables) must be declared before they can be used.
The need to declare header files is not compulsory in C++. You may place all your code in a single source file if you so desire. However, header files are useful in that they separate interface from implementation and aid in hiding information.
No. Keywords are reserved and cannot be used as identifiers. However, C/C++ is case-sensitive. So although register is a reserved keyword, Register is not.
yes it is possible to make a private class in C++ but this class will not solve any purpose.................
In C++, overriding and function, method, or operator is a different thing than (dynamic) polymorphism, so overriding a polymorphic method is almost entirely possible.
No., If you want to declare you jus use _ in between so the declaration will be like int seg_no;
In C++, methods are simply class member functions.
method
In C++ all names (including variables) must be declared before they can be used.
The need to declare header files is not compulsory in C++. You may place all your code in a single source file if you so desire. However, header files are useful in that they separate interface from implementation and aid in hiding information.
Use the istream::eof() method.
No. Keywords are reserved and cannot be used as identifiers. However, C/C++ is case-sensitive. So although register is a reserved keyword, Register is not.
yes it is possible to make a private class in C++ but this class will not solve any purpose.................
Virtual method invocation is a term borrowed from C++. It means that methods are invoked polymorphically. Instead of invoking the method in the compile-time type, the method is invoked as its runtime type. In C++, you declare methods virtual that are executed this way.
See related link. It's in C rather than C++, but conversion to C++ is fairly simple.
In C++, overriding and function, method, or operator is a different thing than (dynamic) polymorphism, so overriding a polymorphic method is almost entirely possible.
If you declare a variable inside of any fuction (except main) it will not be available to other functions.