Answer Posted / rajdeep gupta
Two concepts that go together in the object oriented approach are Encapsulation & Abstraction. Abstraction is the representation of only the essential features of an object, while Encapsulation is the hiding of the non-essential features.
Think of a person driving a car. He does not need to know the internal working of the engine or the way gear changes work, to be able to drive the car (Encapsulation). Instead, he needs to know things such as how much turning the steering wheel needs, etc (Abstraction).
| Is This Answer Correct ? | 0 Yes | 0 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 oops?what is its use in software engineering?
What is the purpose of enum?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Can we define a class within the interface?
What is abstract class in oop?
What is object and example?
What are the types of abstraction?
What is constructor overloading in oop?
Can bst contain duplicates?
What is object in oops?
Give two or more real cenario of virtual function and vertual object
What is the difference between abstraction and polymorphism?
Advantage and disadvantage of routing in telecom sector
Why polymorphism is used in oops?