C: there are no methods in C.
C++: no.
In C++ all names (including variables) must be declared before they can be used.
yes it is possible to make a private class in C++ but this class will not solve any purpose.................
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.
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.
In C++, overriding and function, method, or operator is a different thing than (dynamic) polymorphism, so overriding a polymorphic method is almost entirely possible.
In C++, methods are simply class member functions.
No., If you want to declare you jus use _ in between so the declaration will be like int seg_no;
method
In C++ all names (including variables) must be declared before they can be used.
Use the istream::eof() method.
yes it is possible to make a private class in C++ but this class will not solve any purpose.................
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.
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.
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.
A private member can only be accessed from within a method of the class.(Not 100% certain what the question means. If this answer is not sufficient, please restate the question, giving more details as to what is being asked.)