This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: a) Class b) Class/Object c) Object d) Object e) Object f) Class A3: (a) An object is a construct in the object-oriented programming. It models a real- world entity and is an encapsulated collection of attributes and methods. The attributes represent the state of the entity and describes the characteristics of the entity. The methods model the behaviour of the entity, which describe the functions that can be performed by the entity. (b) A class groups a collection of similar objects, which have state and behavior in common. A class provides the blueprint of an object and it defines the variables and methods an object will contain when instantiated. Every object is an instance of some class. CC2203 Data Structures and Algorithms Sem 2, 2009-2010 Page 2 of 2 A4: Read the screenshots for compiling the .java files: Read the all .java files....
View Full Document