explain oops concepts with examples?
Answer Posted / nagesh
OOP is Nothing but Object Oriented Programming.
In OOPs concept is implimented in our real life systems.
OOPs have following features
1. Object - Instance of class
2. Class - Blue print of Object
3. encapsulation - Protecting our data
4. polymorphism - Different behaviors at diff. instances
5. abstraction - Hidding our irrelavance data
6. inheritence - one property of object is aquring to
another property of object
7.Message Passing:message passing is possible from one
object to another
8.Robust and Secure: every object is strong one.
every object is secure one with their access specifiers.
| Is This Answer Correct ? | 97 Yes | 37 No |
Post New Answer View All Answers
Can a method be overloaded based on different return type but same argument type?
How many bits is a float?
Difference between static synchronization vs. Instance synchronization?
What is an immutable object? How do you create one in java?
What is the difference between compiler and jvm?
What happens when a thrown exception is not handled?
Is stringwriter thread safe?
Is null a value?
What is the purpose of using javap?
Can a java program have 2 main methods?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is ascii format?
What is the default value of an object reference declared as an instance variable?
What is the use of callablestatement?
Give a practical example of singleton class usage?