Introduction to object oriented programming
Object-oriented programming provides us to play with objects. Now the question is what are objects? Object-defined as any entity around us.Visible and Nonvisible objects around us through our senses.
Now a closer look at objects around us reveal that there is various type of objects as described below.
- Objects that operate independently
- Objects that work in associations with each other
- Objects that frequently interact with each other
- Objects that are contained in another object
Every object has three characters
- Identity: It is the name which is associated with object e.g Dog is associated with animal
- State: An objects can be in many states e.g dog is barking
- Behaviour What is the ability of objects e.g dog can run, bite, bark and e.t.c
1 Comments
Thanks Sir ..good platform for learning oop
ReplyDelete