This website uses cookies to ensure you have the best experience. Learn more

What Is An Object Essay

1404 words - 6 pages

Chapter 1
Concept of Objects
1) Concept of Objects.
Ans. An Object is an identifiable entity with certain characteristics and behaviour.
You yourself are an example of an object. Your:
Characteristics – Eyes, Ears, Nose, Hands, Legs.
Behaviour – Walk, Talk, Eat ,Sleep, Dance.
DOG. Its:
Characteristics – Name, Colour, Breed.
Behaviour – Barking, Wagging tail.
BIKE. Its:
Characteristics – No of gears, No of brakes, Wheels.
Behaviour – Braking, Accelerating, Change gear.
An object has a state. It has certain characteristics and attributes like size, shape and colour. A change in these attributes are called as the objects behaviour. Each object has a unique ...view middle of the document...

• An object is an identifiable entity. Building is an object.
• Two objects cannot be same in the real world. Different in name and location.

3) Concept of Data Abstraction.
Ans. Data Abstraction refers to the act of representing essential features without including the background details or explanations.
Example: You are driving a car. You only know the essential features to drive a car. Example: gear handling, steering handling, use of clutch, accelerator, brakes, etc. But while driving do get into internal details of car like wiring, motor working, etc? You can change the gears or apply brakes. What is happening inside is hidden from you. This is abstraction where you only know the essential things to drive a car without including background details or explanations.
Example: Computer – We are using the computer but what is happening inside is hidden from you.
Example: Map of Bombay – HVB Academy will not be shown.

4) Concept of Encapsulation.
Ans. Every real world object has :
• Characteristics – variables – num1, num2.
• Behaviour – functions - add(), sub().
The wrapping up of data and functions into a single unit called a class is called Encapsulation.
Example: ATM
• Variables/Characteristics – balance, withdraw, deposit.
• Behaviour/Methods – getBalance(), setDeposit(), setWithdraw().
To access variables we have to use methods. Variables depend on methods.
Data Abstraction – User does not know from where balance is going to come.

5) Message passing among objects.
Ans. When objects need to interact with one another, they pass/request information to one another. This interaction is known as message passing. That is objects interact with each other through messages.
Example: One department object sends message to another department object to retrieve some information. This is known as message passing.
Sometimes the object receiving the message needs more information so it knows what exactly to do. For example to send a message to change gears, you have to indicate which gear you want. This information passed along with messages are known as parameters.
Example: To change the gear of a bike to the 2nd gear, you need to send a message to the method changeGear of object bike. Also, a parameter needs to be sent that you want to change to 2nd gear. Software objects interact and communicate with each other using messages.

6) How do objects encapsulate state and behaviour?
Ans. An Object is an identifiable entity with certain characteristics, attributes and behaviour. The state of an object depends upon the values of its attributes at any given point of time.
Since state and behaviour are interwoven, they are said to be encapsulate state and behaviour. For instance, a car object has...

Other Papers Like What Is An Object

What Family Is To Me. From an adoptee's point of view

546 words - 3 pages What Family Is To MeSince birth, I have grown up with a different concept of family than most peopledo. Instead of being born into my biological family, I was adopted into my given family. Ihave known I was adopted, for as long as I can remember because my parents made sureto tell me so, at the earliest age that I could understand. By adopting me and my sisterinto the family, my parents showed that family means love, respect and sacrifice

Memory Object Essay

1292 words - 6 pages Memory Object   The eyes black, looking at you emotionless. The stitched wonky smile giving it a smirk, gave the impression of happiness, warmth and friendship. Cute brown velvet button nose and pale white body. From afar it looked like any normal teddy. If you looked closer though you would notice the marks that made it mine. The black smudges from crying eyes and the rips in the sides from a playful child. Every time it is was washed it lost

Object Oriented

1437 words - 6 pages Chemical Inventory Management Benchmarking Survey Results  Chemical Inventory Management System  All sites utilize electronic chemical inventory systems  9 sites use an in-house application  3 sites use commercial-off-the-shelf applications  All sites use barcodes. 3 sites use container tracking methodologies in addition to bar codes  RFID is not being used for container tracking at any site 6 Chemical Inventory Management

What Is the Literatry Function of the Dialogue Between Language and Nature in David Malouf's an Imaginary Life

547 words - 3 pages 50 Excellent Extended Essays What is the literary function of the dialogue between language and nature in David Malouf’s An Imaginary Life? © International Baccalaureate Organization 2008 1 50 Excellent Extended Essays What is the literary function of the dialogue between language and nature in David Malouf’s An Imaginary Life? 2 © International Baccalaureate Organization 2008 50 Excellent Extended Essays What is the

The World Is Already Begging? What Else Do You Want?...An Essay On Oil And The Economy

1403 words - 6 pages . When these changes of prices are severe ones, one might easily conclude that an economy is going to face problems such as unfavorable supply shocks, or according to the theory adverse supply shocks. When these kinds of problem arise in the world oil market, it is usually described as a world oil crisis. The world has witnessed 2 major oil crises and it is facing another one at the moment. In order to discuss the recent oil crisis and its

To What Extent Is an E-Commerce Strategy the Best Way for Businesses to Increase Their Profits? (40 Marks)

1432 words - 6 pages To what extent is an e-commerce strategy the best way for businesses to increase their profits? (40 marks) E-commerce is the online transaction of goods and services, which has completely revolutionized business and the way in which businesses can operate. It’s now easier for customers to compare prices/products with a little time spent browsing the Internet opposed to dragging themselves to the stores. This means that e-commerce is having

Why Is the Initial Consultation so Important What Factors Will an Ethical Therapist Cover at This Time

2440 words - 10 pages “Why is the initial consultation so important? What factors will an ethical therapist cover at this time?” Year One – Module Three (Word Count – 2226) This essay endeavours to document the importance of the initial consultation within a successful therapeutic treatment plan. It will comprehensively describe ethicality, before applying this fundamental component of treatment to a beneficial, healing and professional environment. It

‘Prufrock Is Presented as an Awkward and Emasculated Character’. to What Extent Do the Metaphors in ‘the Lovesong of J.Alfred Prufrock’ Create the View of This Character?

999 words - 4 pages ‘Prufrock is presented as an awkward and emasculated character’. To what extent do the metaphors in ‘The lovesong of J.Alfred Prufrock’ create the view of this character? T.S Eliot uses metaphors throughout ‘The love song of J.Alfred Prufrock to depict the protagonist as a man constantly at odds with himself and society. This piece is scattered with metaphorical phrasings that serve to present an image of an individual in emotional turmoil as

To What Extent Is It True That the Amount of Profits Earned by a Business, in an Economic Downturn, Depend Upon the Industry in Which It Operates?

1389 words - 6 pages An economic downturn can be accounted for when the GDP of the country falls. The GDP is the Gross Domestic Product of the country and accounts for all transactions made throughout each quarter of the accounting period. If the GDP falls for two consecutive quarters then that is classed as a recession and the government should take action to help stimulate the economy. The worst most recent recession started in the 3rd quarter of 2008 and lasted

Plato's Gay Is an What Even If?

818 words - 4 pages complexity. Creationists believe the universe was designed to be complex by an Intelligent Designer. Evolutionists, in their effort to exclude a designer, contend that complexity has developed from simplicity over time. Evolutionists view time as their solution. However, hard science tells us that time is the enemy of complexity. This fact has been so well documented that it has obtained the stature of a physical law, the "Second Law of

Object Orientated Software

1497 words - 6 pages 5046 COMP Object Orientated Software Development EDepot System OOAD Outline of Problem In this assignment I have been asked to employ an Object Orientated Analysis & Design (OOAD) process in designing an eDepot System from a requirements document and use Unified Modelling Language (UML) to diagrammatically model the eDepot systems functionality. For this there will be 10 sections which I have been asked to produce and for each section

Related Essays

What Is An American Essay

580 words - 3 pages What is an American? By Bryan Butler To be an American is to question authority and fight for what you believe in. To be an American is to strive for that impossible dream no matter what it takes. Being an American means that you stand by your neighbor when our homes are threatened. Being an American gives you the right to fight for the freedoms our ancestors had given up so much for. An American is a person that is willing to fight

What Is An Essay

883 words - 4 pages What is an essay? It’s a short self-contained piece of writing, usually between five hundred to three thousand words long. It responds to a question or a statement with a structured set of comments that lead to an overall conclusion (B, Neil). An essay is constructed like a freight train. The argument is the engine, supplying the power and direction and pulling the rest behind it. The cars are the paragraphs, each carrying a topic sentence and

What Is An Fir Essay

1393 words - 6 pages registered in Delhi. Going back to the usage of such words in the FIRs, a police officer said that Delhi was ruled by the Persians and Mohammads because of which such words got into the lexicography of cops as well. What is an FIR? First Information Report (FIR) is a written document prepared by the police when they receive information about the commission of a cognizable offence. It is a report of information that reaches the police first in

Why Is The Initial Consultation Important? What Factors Will An Ethical Therapist Cover At This Time?

2014 words - 9 pages WHY IS THE INTIAL CONSULTATION IMPORTANT? WHAT FACTORS WILL AN ETHICAL THERAPIST COVER AT THIS TIME? Why is the initial consultation important? In this essay I will discuss the pros and cons of the initial consultation from the Therapist and Client perspective and whether it is essential to offer an initial consultation to clients coming for therapy. First of all I will describe what an initial consultation is and involves. The