Thursday, September 6, 2012
BASIC CONCEPTS OF OOPS
BASIC CONCEPTS OF OBJECT ORIENTED PROGRAMMING:
1.Class
2.Object
3.Inheritance
4.Interface
5.Abstract Class
6.Overriding
7.Polymorphism (or ) Overloading
1.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 1
public class Student
{
}
2.Object:
An object can be...