Posts

Showing posts with the label Object Oriented Programming (OOPs)

Object Oriented Programming(OOPs) :features or characteristics of OOPs, advantages, disadvantages and Applications of OOPs.

Object-oriented programming (OOPs) : OOPs refers to languages that uses objects in programming. Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects". Objects contains both states and behaviours. (and identity also). Features  or Charecteristics of OOPs : 1.Classes 2.Objects 3.Encapsulation 4.Data Abstraction 5.Inheritance 6.Polymorphism 7.Dynamic binding There are four pillars of OOPs : 1. Inheritance 2. Polymorphism 3. Abstraction 4. Encapsulation 1. classes : Class represents a real world entity which acts as a blueprint for all the objects. Class is "blue print"  or "template" for creating all the objects. We can create as many objects as we need using Class. Example: We create a class for “ Student ” entity as below Class Student { String id; int age; String course; void result() { System.out.println(“Student enrolled”); } } Above definition of class contains 3 fields id,age and ...