CONCEPTS USED
Objects
Objects are the basic run-time entities in an object-oriented system. It can be physical or conceptual. An object is an identity
which means data is quantized
Classes
A class is a description of a set of objects that share the same properties and behavior .
A class can have three kinds of members:
1)Fields : data variables which determine the status of the class or an object
2)Methods : executable code of the class built from statements. It allows us to manipulate/change the status of an object or access the value of the data member
3)Nested classes : nested classes are classes within class and are known as Inner Class
Encapsulation
Wrapping up data members and methods together into a single unit (i.e. Class) is called Encapsulation. Encapsulation is a technique used to protect the information in an object from the other object
Abstraction
To represent the essential feature without representing the background details .
Inheritance
Is the process by which new class is created from existing class . Derived classes have all the features of the base class in addition to some new features. The new inheriting class is called derived or sub class and inherited class is called base or super class
Polymorphism
Polymorphism is the ability to take more than one form (objects have more than one type) . A class can be used through its parent interface .A child class may override some of the behaviors of the parent class
Objects are the basic run-time entities in an object-oriented system. It can be physical or conceptual. An object is an identity
which means data is quantized
Classes
A class is a description of a set of objects that share the same properties and behavior .
A class can have three kinds of members:
1)Fields : data variables which determine the status of the class or an object
2)Methods : executable code of the class built from statements. It allows us to manipulate/change the status of an object or access the value of the data member
3)Nested classes : nested classes are classes within class and are known as Inner Class
Encapsulation
Wrapping up data members and methods together into a single unit (i.e. Class) is called Encapsulation. Encapsulation is a technique used to protect the information in an object from the other object
Abstraction
To represent the essential feature without representing the background details .
Inheritance
Is the process by which new class is created from existing class . Derived classes have all the features of the base class in addition to some new features. The new inheriting class is called derived or sub class and inherited class is called base or super class
Polymorphism
Polymorphism is the ability to take more than one form (objects have more than one type) . A class can be used through its parent interface .A child class may override some of the behaviors of the parent class