Archive for: July, 2014

Java Polymorphism

Polymorphism means many forms and it is one of the key concepts of Object oriented programming in java. As you all know, in the Inheritance section we have discussed that the sub classes have their own unique features and also shares some of the common features in their parent class. Sub classes do override some…

Read More →

Java Abstraction

Abstraction in OOP is where creating interface or abstract classes to define the common behavior and reuse or implement it by extending it. In Java, Abstraction works with a keyword called Abstract. Abstract Class: A class declared with a keyword ‘abstract’ is said to be Abstract class. This abstract classes cannot be instantiated. It can be…

Read More →

Java Encapsulation

Encapsulation is one of the key concepts of Object Oriented programming which has benefits such as flexibility and maintainability. It is defined as hiding the fields of an object without getting updated or misused. Encapsulation: Encapsulation is done when the instance variables are marked with the ‘private’ access modifier. Then, having getters and setters (methods)…

Read More →

Back to Top