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
what type of question are asked in thoughtworks pair programming round ?
i got a backdoor offer in process global,Bangalore..Can i work with it?
Which is better struts or spring?
What is the difference between abstraction and polymorphism?
What are constructors in oop?
Can private class be inherited?
write a program to find 2^n+1 ?
What type of loop is a for loop?
What is pure oop?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is the types of inheritance?
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.
Can main method override?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Prepare me a program for the animation of train