Posts

Showing posts from September, 2019

Introduction to OOP (Object Oriented Programming)

Image
Introduction to OOP Object-oriented programming – As the name suggests uses objects in programming. Object Oriented Programming is defined as an approach that provides a way of modularising programs by creating a partitioned memory area for both data and functions that can be used as a template for creating copies of such modules on demand. Writing an OOP involves creating classes, creating objects from these classes, and creating applications that are stand-alone executable programs that use those objects. After being created, classes can be re-used over and over again, to develop new programs. Features of OOP Class : Class is a user defined data type. A class is a logical abstraction. It is a template that defines the form of an object. A class specifies both code and data. When defined class, you declare data that it contains, and the code that operates on the data. Data is contained in instance variable defined by the class known as data members and code is conta...