Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is object slice?

Answer Posted / vivek

When a derived class object is assigned to a base class,
only the base class's part of content in the derived object
are copied to the base class, leaving behind the derived
class specific contents. This is referred as Object Slicing.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the owner of java?

1005


Can we have multiple public classes in a java source file?

1197


What is the scope or life time of instance variables?

1119


How concurrent hashmap works?

1186


Define a package.

1092


Difference between arraylist and vector.

1132


What is a boolean expression in java?

1035


Why is multithreading important?

949


Why is static used?

1031


Can a method be overloaded based on different return type but same argument type?

971


What are recursive functions? Give some examples?

1194


What is difference between fail-fast and fail-safe?

1242


What is default exception handling in java?

1035


What is the difference between stringbuffer and stringbuilder class?

1112


Can a class have multiple subclasses?

1111