Tag Archives: Object Oriented Concepts

Object Oriented Concepts and Much More

These articles explain the object oriented concepts in detail. UML representation of most of the concept is provided in these articles. Also Java code examples are available to explain the concepts better.  Here is the list of articles.

Encapsulation or Modularization in Object Oriented Programming

Encapsulation is hiding information. Encapsulation hides implementation details from world and exposes only the contract. In case of a class, the methods exposed without private access modifier defines the contract of that class. How these methods are implemented is never known to the users of these methods.

Polymorphism in Object Oriented Programming

Polymorphism means poly multiple forms. Many shapes. In object oriented programming, polymorphism means the type of object is determined as late as at runtime. What does it mean, and what do we achieve by this? Let us take an example. We have following classes.

Inheritance in Detail

Inheritance means acquiring properties and behaviour from parent. In object oriented world, when an object gets a set of properties and certain behaviour from it’s parent, then we can say that this object is inherited from the parent under consideration. Here the parent is called as base class and child (or children) is called as sub class. Base class represents general behaviour. It is different from abstraction. The difference is – base class can exist on it’s own. It can be a concrete class. In case of abstraction, the base classs is incomplete and can not be instantiated on it’s own. For more details, read abstraction here.

All About Abstraction

Abstraction – you can call it as generalization. Generalization means removing specific information to make that object represent a familiy of all similar objects. Obviously we leave specific things aside to consider them in specific objects, which may be derived from this general object, which is our abstract object. Let us take an example (you may be knowing this example already).

Powered by WordPress | Designed by: seo service | Thanks to seo company, web designers and internet marketing company