OOP is Nothing but Object Oriented Programming.
In OOPs concept is implimented in our real life systems.
OOPs have following features
1. Object - Instance of class
2. Class - Blue print of Object
3. encapsulation - Protecting our data
4. polymorphism - Different behaviors at diff. instances
5. abstraction - Hidding our irrelavance data
6. inheritence - one property of object is aquring to
another property of object
Please assume u standing near a car. How to impliments our
OOPs concept for this scenario ?
car is a object b'coz it having more functions.
car is a class b'coz it contain more parts and features
car is a Encapsulation B'coz it protected some unwanted
parts or functions to user
car is a Polymorphism b'coz it have different speed as
display in same speedometer
car is a Abstraction b'coz it hidding more parts by coverig
such as engine,disel tank
car is a Inheritance b'coz one car is a property of more
people. i mean your car is driving bu you, your friend and
Please Help Members By Posting Answers For Below Questions
can any body body expalin best definitions & best real time
exaples for opps concepts.
Say you want to store the information about a number of
pets in an array. Typical
information that you could store for each pet (where
relevant) would be
• Breed of animal
• Animal's name
• Its birth date
• Its sex
• Whether it has been sterilised or not
• When it is due for its next inoculation
• When it last had its wings clipped
For each type of pet (eg. dog, cat or bird) you would
typically define a class to hold
the relevant data.
Note: You do not need to implement these classes. Just
answer the following
3.1.1 What would be the advantage of creating a superclass
(eg. Pet) and
declaring an array of Pet objects over simply using an
array of Objects,
storing each of the instances of the different pet classes
(eg. Dog, Cat or
Bird) in it?
3.1.2 Would you define Pet as a class or as an interface?
how to prepare for IT Officers Interview in Banks
difference between byte stream class and character stream class?
What does those terms actually mean included in the j.d.k i.6?
what is object slice?
when a request is generated from apache tomcat 5.5 and goes
to oracle 10g or mysql,,, how the oracle or mysql reads the
request as apache is a web server and oracle 10g is
application server? when the oracle 10g provides response,
how the apche tomcat reads it???
Addition to previous section relative word 5th one was
Putrid ans: rotten, also there was prob. in 1st section on
bucket weight ans:10kg, also there was a prob. on train
speed to find bridge length ans:800 mtrs.
what is collatration?
why java does not support unsigned keyword?
how a programmer confirms that the data submitted has been
succesfully inserted into the database(either oracle or my
sql).. How a programmer confirm if there is any problem with
the program he wrote for insertion...
ANS:--- >executeupdate method is having boolean return type,
if anything goes wrong in data insertion or data updation,
it would return false. otherwise, if it successfully inserts
data into the database, it would return true
NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS
TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is the java project architecture?
there are N number of matchboxes numbered 1...N.each
matchbox contain various number of stick.Two player can
alternatevely pick some amount of stick from the higest
stick containing box . The player is condidered win if
there is no stick after his move.Find the final move so
that the move player win.
Note:In case the number of stick is equal ,pick the stick
from the higest numbered box.
Highest level event class of the event-delegation model?
What is the exact difference in between Unicast and Multicast