WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE
SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
Answer Posted / dulichand kumawat
class: A class is a collection of variables and functions working with these variables. Variables are defined by var and functions by function.
Object: Object is instance of the class which is used for run
the class like a key(object) of car(class)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is oops concept with example?
Can we create object of abstract class?
Why is abstraction needed?
What is abstraction with example?
What is multilevel inheritance explain with example?
What is methods in oop?
What is new keyword in oops?
What is encapsulation and abstraction? How are they implemented in C++?
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 the highest level of cohesion?
what is difference between class template and template class?
Is this job good for future? can do this job post grduate student?
What is the types of inheritance?
What is variable example?
What is the real life example of polymorphism?