Answer Posted / jayasrinivas.donavalli
class:class is an abstract data type in which both Member
functions and member variable are declared that means
aclass is userdefined data type in which we will be able to
declare both methods and variable.
object : Object is an Instance of the class.The class is a
valid one when object is created.
For one class we will have more number of Objects.
declaration of class in
class classname
{
public:
Member variables;
Member functions();
protected:
Member variables;
Member functions();
Private:
Member variables;
Member functions();
};
Declaration of Objects:
class classname allaisname;
here allias name is nothing but objectname.
if we want to get the data from that particular we have to
use objects.
objectname.functionname();
| Is This Answer Correct ? | 26 Yes | 4 No |
Post New Answer View All Answers
What is basic concept of oop?
Why do we use polymorphism in oops?
What are the benefits of interface?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is the main feature of 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.
Which is not an object oriented programming language?
what is difference between class template and template class?
What does and I oop and sksksk mean?
What is object in oop with example?
Why do we need oop?
How do you answer polymorphism?
What is difference between pop and oop?
#include
What is polymorphism in oop example?