Answer Posted / bibek
object slicing is the technique where we when we assign the
value of derived class to the base class,only the base class
content is sliced not the derived class own datamember.
Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
Why do we use oops?
What is data binding in oops?
What is multilevel inheritance?
What does and I oop and sksksk mean?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What are the benefits of polymorphism?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is the difference between a constructor and a destructor?
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 is class in oop with example?
Which method cannot be overridden?
How do you answer polymorphism?
Why it is called runtime polymorphism?
Why is oop better than procedural?
What are the 5 oop principles?