Answer Posted / ravi
OBJECT SLICING IS ALSO USED IN THE VIRTUAL FUNCTION
TO USE TO ACCESS THE DATA MEMBER OF DRIVED CLASS
Is This Answer Correct ? | 0 Yes | 9 No |
Post New Answer View All Answers
What is encapsulation in ict?
What are the 5 oop principles?
What is class and example?
What are objects in oop?
Where is pseudocode used?
What is oops?what is its use in software engineering?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is multilevel inheritance?
What is the difference between a constructor and a destructor?
Can abstract class have normal methods?
What is the real life example of polymorphism?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are oops methods?
#include
What is object in oops?