explain oops concepts with examples?

Answer Posted / noorjahan .c

OOP'S ~ Itz nothing but Object Oriented Programing
It mainly consist of

1.objects - these are the basic run time antities in object oriented system.They may represent a place,person or a data that the programer has to handle.
2.class - It is a collection of items.Itz decleration is same as of structure.The body of class is enclosed within '{}' & terminated by ';'.The class body contains the decleration of varible &function.
3.Inheritance - It is the process by which object of one class aquire the property of another class.
4.polymorphism - In this an operation may show different behaviour in different instance.
5.Encapsulation - The binding of data & function into a unit called as class n this is known as encapsulation
6.Abstraction - It refers to the act of represending the essential features without including the background details.
7.Dynamic binding - It means that the program code associated with a given procedure call is not known untill the time of call

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is daemon thread and which method is used to create the daemon thread? : Java thread

526


How do you create a null object?

509


Name some classes present in java.util.regex package.

608


What is the size of a string in java?

547


Can you sort a list in java?

529






List the different types of classloaders in java.

501


What is method overloading and method overriding?

538


What is method reference in java?

561


Can we override the static methods?

572


Can a class have more than one object?

528


Are functions objects in java?

541


What are the differences between c++ and java?

582


What is derived datatype?

629


When we serialize an object does the serialization mechanism saves its references too?

508


Which is fastest collection in java?

564