Posts

Comparison inheritance and polymorphism

Image
What is OOP in JAVA? OOP stands for Object-Oriented Programming, OOP is a paradigm that provides many concepts, such as inheritance, data binding, polymorphism, etc. Procedural writing computer programs is tied in with composing systems or strategies that perform procedure on the information, while object-oriented programming is about creating objects which contain both data and methods. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. Object-oriented programming has some advantages over procedural programming: ●      OOP is faster and easier to execute ●      OOP provides a clear structure for the programs ●      OOP helps to keep the Java code DRY "Don't Repeat Yourself", and makes the code easier to maintain, modify and debug ●      OOP makes it possible to create full reusa...