Upload
gyanguide1
View
92
Download
1
Embed Size (px)
Citation preview
What is OOPs concept
in Java ?
PRESENTED BY INFOCAMPUS
OOPs (Object Oriented Programming System) Object suggests a genuine component, for instance, table ,chair , pen.
Object Oriented Programming is a system to plot a code using the classes and inquiries.
It makes the item headway and upkeep basic by giving a couple of thoughts.
It consist of six OOPs thought as :- Class- Object- Inheritance- Polymorphism- Abstraction- Encapsulation.
OOPS CONCEPT :
INFOCAMPUS SOFTWARE TRAINING INSTITUTE
Object :
Object is just an event of class . It is physical component. It is having state and behaviour.
For example Employee is a class, Employee "Mohan" is the name of his and
he is working in leave no.10 that mean "Mohan " is state of Employee and he is " working " is the behaviour of the agent.
best core java training in bangalore
Class :
Class is a group of similar objects . It is a logicalcomponent , it is not the physical entity .
Class is a blue print from which objects aremade, in which it gets the state and behaviour of anobject.
Inheritance :
Inheritance suggests getting the properties of one class inside another class .
In inheritance we are using the thoughts of sub and super class.
Sub class (derived class, child class,inheriting class) can acquire the super class properties.
For gaining super class properties sub class uses one phrase "extend".
Polymorphism :
It involves two words poly and morphism .Polysuggests various and morphism infers behaviour.
Polymorphism is a limit of a challenge translation ofdifferent structures.
For example :
Wikipedia is an application , in case we are picking English language then application will show up in English ,
if hindi then same application will be in hindi ,that direct is known as polymorphism,because application is one, having various behaviour lead.
Abstraction:
Abstraction infers hiding the methodology execution and showing the strategy signature. For getting abstraction we use one keyword , abstract.
In case the class is containing abstract keyword that mean class should be inherited by its sub class.
java training center bangalore
Abstract class contains abstract(incomplete)method and concrete(complete)method,but all abstract method should be completed by its sub class.
In case sub class is not completing all abstract methods then declare the subclass as abstract.
INFOCAMPUS SOFTWARE TRAINING INSTITUTE
Encapsulation :
Encapsulation suggests wrapping the code and data into a single unit or hiding the data with in the class .
For finishing encapsulation data should be private since private data can't be access outside the class.
If we have to get the private data outside the class then we use getters and setters method.
If the data are static then getters and setters should be static ,if data are non static then getters and setters should be non static.
INFOCAMUS SOFTWARE TRAINING INSTITUTE
These are the OOPs concept that should be know to understand the Java.
In finally you can express that if you are knowing these thoughts , you will have the ability to know the other thought of Java like overloading , overriding, interface , multithreading etc..
LEARN JAVA@
INFOCAMPUSWITH
PLACEMENT ASSISTANCE
Infocampus provides best core java training in bangalore with the placement assistance
Training on Core & Advance Java with the live project.
Mock tests And Mock Interviews are conducte
2 days Free Demo classes
Practical classes are provided
CONTACT DETAILS
#12, 4th
Floor,Outer Ring Road,Kalaminder RoadAnand Nagar,Marathahalli,Bangalore,Karnataka 560037
ENQUIRE AT:http://www.infocampus.co.in/java-training-bangalore.html
CONTACT @
9738001024
THANK YOU