Sunday, February 5, 2012

CONCEPTS OF OBJECT ORIENTED PROGRAMMING

CONCEPTS OF OBJECT ORIENTED PROGRAMMING:1.Class2.Object3.Inheritance4.Interface5.Abstract Class6.Overriding7.Polymorphism (or ) Overloading1.Class:A class is simply a representation of a type of object. It is the blueprint/ plan/ template that describe the details of an object. A class is the blueprint from which the individual objects are created. Class is composed of three things: a name, attributes, and operations.Examples 1public class Student{}2.Object:An object can be considered a thing that can perform a set of related activities. The set of activities that the object performs defines the object’s behavior. In pure OOP terms an object is an instance of a class.Examples 2Student objectStudent = new Student();In Example 2 we can say that the student object, named objectStudent, has created...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo