Saturday 5 December 2015

what is the difference between class and objects?

class is a collection of properties and functionalities, and object is the instance of the class. human is a class and you and me are its objects

what is object oriented programming

OOP is a design philosophy. It stands for Object Oriented Programming. Object-Oriented Programming (OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything in OOP is grouped as self sustainable "objects". Hence, we gain reusability by means of four main object-oriented programming concepts.
In order to clearly understand the object orientation model, let’s take our “hand” as an example. The “hand” is a class. Our body has two objects of the type "hand", named "left hand" and "right hand". Their main functions are controlled or managed by a set of electrical signals sent through our shoulders (through an interface). So the shoulder is an interface that our body uses to interact with our hands. The hand is a well-architected class. The hand is being reused to create the left hand and the right hand by slightly changing the properties of it.
starting this blog to discuss the problem and their solutions (programming please)