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
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is the main purpose of inheritance law?
Why we use classes in oop?
What is balance factor?
How do you achieve runtime polymorphism?
What is abstraction and encapsulation?
What is class in oop with example?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is abstraction in oop with example?
How to call a non virtual function in the derived class by using base class pointer
What is cohesion in oop?
Why do we need oop?
What is oops with example?
What is the real time example of inheritance?
Is abstract thinking intelligence?