OOPS Conecpt Of Java
Introduction:
opps stand for "Object Oriented Programming System".OPPs is technique not technology,that means it does not provide any syntax or any predefined API for programing,it only provides the suggestion to design and develop objects in programming language.
Why OOPs?
oops is methodology introduced to represents real world objects using a program for automating real world business by achiving security because business nedd security.
All living and non-living things are callad object.so the real worls objects such as Person,Annimal,Bike,Computer etc.
Definition of OPPs:
OOP is methodology that provide a way od modulirizing program by creating partitioned memory area for both data and methods that can be used as template for creating copies od such module(Ojects on Demand)
What is class?
- A class is a specification or blue print or template of an object that defines what goes to make up particular sort of objects.
- Thus a class is a logical construct,an object is physical reality.
- A class defines the structure,state and behaviour that will be shares by a set of objects.Hence each object of a given class contains the structure,state and behaviour defined by the class.
- When we create a class ,we'll specify the data and code that constitude that class.Collectively these elements are callad memebers of that class.specifically,the data defined by that class are referred to as member variables or instance variables or attributes.the code that operates on that data is reffered to as member methods.
What is Object?
- Object is the physical reality of a class.
- Technically object can be defined as "it is an encapsulated form of all non-static variables and non-static methods of particular class".
- An instance of a class is the other technical term of an object.
- The process of creating objects out of a class is callad instantiontion.
- Two objects can be communicated by passing message(argument)
above diagram shows the meanning of the logicla construct and physically reality.
