Please tell me the oops concept with detailed answer

Answer Posted / mahesh_b.tech@2008

There are mainly 4 object oriented principals.

1)ABSTAACTION:process of providing necessary properties &
operations of an object.

2)ENCAPSULATION:process of providing all the properties
&operations of entity in one place.
properties...>variables
operations...>methods
place ...>class

3)INHERITANCE:process of writing a new class(derived
class,sub class,chiled class) by using the functionality of
existing class(super class,base class,parent class)

4)POLYMORPHISM:one form behaving differently in different
situations.
ex:tv remote button,same button used to make the tv on &
off.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1830


Why we use classes in oop?

575


What is the difference between encapsulation and polymorphism?

587


Can enum be null?

583


What is class in oop with example?

611






class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1693


c++ program to swap the objects of two different classes

1756


What is abstract class in oop?

526


What is inheritance in simple words?

623


Can we define a class within the interface?

551


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1630


What causes polymorphism?

567


How is class defined?

580


Can abstract class have normal methods?

606


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6140