Answer Posted / pushpankar mishra
i woould like to clear one thing that object and instance
are two sligthly differnt things
int a; // 'a 'is instance
a=20;//'a' is a object
eg:object+instance
|
int a=20// object + instance;;
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Why do we use polymorphism in oops?
What is abstraction example?
What is solid in oops?
What is balance factor?
Why is oop better than procedural?
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 is abstraction oop?
What is the purpose of polymorphism?
Why do we use class?
Which method cannot be overridden?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
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.
How oops is better than procedural?
What does and I oop mean?
What exactly is polymorphism?