By Rajanikanth B www.btechsmartclass.com Objects in Java By Rajanikanth B www.btechsmartclass.com
What is an object in the real world? Introduction Before start….. Try to answer the following…. What is an object in the real world? Is this Apple an object? Is cup an object?
Identity of an Object Every object in the world have its won identity
Attributes of an Object Every object have their won attributes which describes the current state of an object…. Object can have multiple attributes An apple can be Red or Green An cup can be Full or Empty An light can be ON or OFF
Object can have multiple behaviors Behavior of an Object Every object have behavior…. Object can have multiple behaviors An Aeroplane can Fly A telephone can Ring Student can write exams
Now….. Lets start…. What is an OBJECT in computer programming ??????? BankAccount Name: Rahul AccNumber: 12345 Balance: Rs 12000 Address: Hyd deposit( ) withdraw( ) changeAtmPin( ) Attributes All real world objects can be computer programming object But behavior Programming Object are not always Physical items in the real world And they are not always Visible items
Classes in Java Programming Next…. Classes in Java Programming In Slide Show mode, click the arrow to enter the PowerPoint Getting Started Center.