What is the difference between class and object?
Answers were Sorted based on User's Feedback
Answer / neha
classes and objects are seprate but related concept.every
object belong to a class and every class contains one or
more objects.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / suvarna handore.
Class is a basic entity which allow to combine data and
manipulators. In class definition we need to club data
members and member functions.The usability of structure and
function together in C++ is known as class.
Objects are the basic runtime entities. Object is an
instance of class.To access data members and member
functions within classes, objects are required. We can
access data from outside the class using objects.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / johncz
Class is a template for the custom type that can be used as
variable. It defines types of data that class contains and
the set of functions to manipulate those data types. It is
just a recipe to be used when class is instantiated.
Object is an entity created using class template. Such an
object occupies computer’s memory. Each object of the class
is independent entity.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kanchi
class is the advance version of structure because it contains the data and functions both so it is wrapped into a single unit called encapsulation.
Object is the instance of class and it always created at run time
| Is This Answer Correct ? | 0 Yes | 0 No |
Whats is abstraction in oops?
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,
sir plz send me a set of questions that been frequently held in written examination during campus selection.
Templates mean
to find out the minimum of two integer number of two different classes using friend function
What is a class?
32 Answers Infosys, TCS, Thylak,
What is a class in oop?
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.
write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language
WAP find square root of any number (without using sqrt() )?
What are the benefits of oop?
What is for loop and its syntax?