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 the sylabus for priliminaries?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is polymorphism in oops with example?
What is basic concept of oop?
what are the ways in which a constructors can be called?
Why we use classes in oop?
What are the three main types of variables?
Give two or more real cenario of virtual function and vertual object
How oops is better than procedural?
Can static class have constructor?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is interface in oop? How is polymorphism achieved? what are the different types of qualifier in java? which feature are not hold visual basic of oop?