Posts

Showing posts with the label Constructor

OOPs concepts in Java with Examples

Image
Object Oriented programming is a programming style which is associated with the concepts like  Class Object Inheritance Encapsulation Abstraction Polymorphism It's based on the concept of “objects” that contain data and methods. It works on the principle that objects are the most important part of your program.  It allows users to create the OBJECTS that they want and then create METHODS to handle those objects.  Manipulating these objects to get results is the goal of Object Oriented Programming. Simula is considered as the first object-oriented programming language. Smalltalk is considered as the first truly object-oriented programming language. Programming languages can be classified into 3 primary types: A. Unstructured Programming Languages: The most primitive of all programming languages having sequentially flow of control. Code is repeated through out the program B. Structured Programming Languages: Has non-sequentially flow of contro...