Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 2 (Q.No. 50)
50.
You separate a derived class name from its access specifier with
Discussion:
1 comments Page 1 of 1.
Ayesha said:
5 years ago
Derived class.
class Rectangle: public Shape
{
public:
int getArea()
{
return (width * height);
}
};
class Rectangle: public Shape
{
public:
int getArea()
{
return (width * height);
}
};
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers