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


Please Help Members By Posting Answers For Below Questions

What is mysql driver class name?

547


Explain about static nested classes in java?

602


Is space a string in java?

508


Can a constructor call the constructor of parent class?

532


how we can create packages in java?

512






what are synchronized methods and synchronized statements? : Java thread

575


What is the difference between a factory and abstract factory pattern?

681


How do you check whether the list is empty or not in java?

507


difference between byte stream class and character stream class?

4079


What is polymorphism and what are the types of it?

494


Explain the private protected method modifier?

540


What are the steps that are followed when two computers connect through tcp?

515


What happens if we override private method?

521


Can a private method of a superclass be declared within a subclass?

525


How can we make copy of a java object?

542