tags:

views:

101

answers:

5

Hi

In java ,or common

  1. Whether java is fully object oriented or partially?
  2. Why its called as fully object oriented or partially?
  3. What is Object oriented programming?
  4. What is a class ?
  5. What is object?

Please can anyone explain simple realtime example?

i could not understand technically....... thanks.......

+4  A: 

You are at the wrong place. Get a book, read and implement. Then come to stackoverflow to ask some specific questions.

You can also search stackoverflow for OOP concepts

zengr
A: 

Read suns tutorial on Object-Oriented Programming Concepts.

Emil
+2  A: 
  1. Whether java is fully object oriented or partially and why? - It doesn't matter. My opinion is that it's not a pure OO language (Python is, I believe) since it has things that aren't objects (like int) - that doesn't make it any less usefull.

  2. What is Object oriented programming? - it is a paradigm shift away from the old world where code was the primary "thing" and it acted on subservient data, often leading to the possibility that it would act on the wrong data. Nowadays, code and data live together in perfect harmony, side by side on the piano keyboard ... sorry, got carried away. Basically, OO consists of, at a minimum, encapsulation (hiding of implementation details), polymorphism (the ability for different object types to be treated identically) and inheritance (making more specific classes from more general ones).

  3. What is a class? What is object? - a class is the "template" or "definition" of an object. An object is a specific instance of a class. Car is a class. My Lamborghini Diablo is an object or instance of that class.

Hope that helps.

paxdiablo
You have a Diablo? We have some wealthy programmers here ;)
zengr
A: 

Hi, Pls come to bool store and pick up a java book, read the 1st and 2en chapters, and thinking about what you have read, then I'm sure you will be aware of these things.

Bruce
sorry, should be book store, not bool store.
Bruce
Where can I get me some of those sweet, sweet bools? :-)
paxdiablo
+1  A: 

Whether java is fully object oriented or partially?

That depends on your definition of "object-oriented".

For example, according to Alan Kay, who coined the word "object-oriented", the only object-oriented languages today are Smalltalk and Lisp. I assume that he probably also would include Self, Newspeak, Io, Ioke, Seph and Erlang, but definitely not Java.

Why its called as fully object oriented or partially?

You would have to ask the people who call it that.

In the case of Alan Kay, it is because it is missing the most important concept of object-orientation: Messaging.

What is Object oriented programming?

Programming with messages.

What is a class ?

Classes were an initial attempt at implementing inheritance in the 1960s. We have since learnt that we don't actually need them.

What is object?

An object is an entity that can send and receive messages. You can think of it as a little computer on a network or as a cell in a complex organism.

Jörg W Mittag