OOPS - Object-oriented programming (OOP) is a programming...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applicatio n Class A class defines the abstract characteristics of a thing (object), including the thing's characteristics (its attributes, fields or prope Object A particular instance of a class. The class of Dog defines all possible dogs by listing the characteristics and behaviors they ca n Method An object's abilities. Lassie, being a Dog, has the ability to bark. So bark() is one of Lassie's methods. She may have other me Message passing The process by which an object sends data to another object or asks the other object to invoke a method.[3] Also known to so m Inheritance Subclasses are more specialized versions of a class, which inherit attributes and behaviors from their parent classes, and can For example, the class Dog might have sub-classes called Collie, Chihuahua, and GoldenRetriever. In this case, Lassie would Each subclass can alter its inherited traits. For example, the Collie class might specify that the default furColor for a collie is b r o Multiple inheritance is inheritance from more than one ancestor class, neither of these ancestors being an ancestor of the othe Encapsulation Encapsulation conceals the functional details of a class from objects that send messages to it.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/08/2010 for the course IIM CAT taught by Professor Cat during the Spring '06 term at Indian Institute Of Management, Ahmedabad.

Page1 / 8

OOPS - Object-oriented programming (OOP) is a programming...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online