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
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Why we use classes in oop?
What is the difference between encapsulation and polymorphism?
Can enum be null?
What is class in oop with example?
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
c++ program to swap the objects of two different classes
What is abstract class in oop?
What is inheritance in simple words?
Can we define a class within the interface?
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?
What causes polymorphism?
How is class defined?
Can abstract class have normal methods?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)