Can we have a private constructor ?
Answer Posted / manjunath
Used mainly to control the object creation...
Ex: the Number of user Login's we can restrict to 15 by
creating 15 objects...
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
What is oops and its features?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is polymorphism and example?
What is inheritance in oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
to find out the minimum of two integer number of two different classes using friend function
What is multilevel inheritance in oop?
What is the main feature of oop?
Why we use classes in oop?
What is an interface in oop?
What do you mean by abstraction?
What are two types of polymorphism?
What is data binding in oops?
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 encapsulation in ict?