Answer Posted / anil sobti
polymorphism means same function or function name but
different behavior.
Is This Answer Correct ? | 55 Yes | 27 No |
Post New Answer View All Answers
2. Give the different notations for the class.\
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is constructor in oop?
What is abstract class in oop?
What is object and class in oops?
What is difference between pop and oop?
What are the types of abstraction?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is coupling in oop?
What is difference between abstraction and encapsulation?
Why oops is important?
What is for loop and its syntax?
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
Can you name some types of inheritance?
What is class and object in oops?