what is object slicing?

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


Please Help Members By Posting Answers For Below Questions

What is difference between polymorphism and inheritance?

622


can inline function declare in private part of class?

3665


Why is object oriented programming so hard?

616


What is and I oop mean?

624


Is data hiding and abstraction same?

572






assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1673


What is object-oriented programming? Webopedia definition

729


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2040


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1656


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2150


What is the significance of classes in oop?

592


What is overriding in oop?

553


What is destructor in oop?

627


What is difference between class and object with example?

566


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1644