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


Please Help Members By Posting Answers For Below Questions

What is oops concept with example?

759


Can we create object of abstract class?

799


Why is abstraction needed?

748


What is abstraction with example?

817


What is multilevel inheritance explain with example?

848


What is methods in oop?

739


What is new keyword in oops?

770


What is encapsulation and abstraction? How are they implemented in C++?

834


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.

904


What is the highest level of cohesion?

757


what is difference between class template and template class?

2382


Is this job good for future? can do this job post grduate student?

1898


What is the types of inheritance?

786


What is variable example?

779


What is the real life example of polymorphism?

841