difference between class and object
Answer Posted / srinivas konga
class is acollection of methods
it is a logical representation
object is a instance of class
it is physical representation
it is always in local declaration
| Is This Answer Correct ? | 27 Yes | 4 No |
Post New Answer View All Answers
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?
What causes polymorphism?
Why is static class not inherited?
why reinterpret cast is considered dangerous?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What are properties in oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is interface in oop?
What are classes oop?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is static in oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
How to hide the base class functionality in Inheritance?
can inline function declare in private part of class?
Which is better struts or spring?