jagadish
jagadish.sbit@gmail.com
jagadish.sbit@gmail.com
is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
If you already have a header file of shape.h then you can declare and define a virtual function mGetArea() in the shape.h file itself. It will not impact any functionality of existing library and derived classes also overrides mGetArea() function if necessary.
- jagadish July 15, 2012Shape.h
class cShape
{
/*
* Existing Code
*
*/
//Newly Added Code
protected:
virtual double mGetArea(){
/*
* Implementation the GetArea logic here
*/
return lArea;
}
virtual ~cShape();
};
class cCircle:public cShape
{
double mGetArea(){
/*
* Circle specific GetArea Implementation.
*/
}
};
class cRectangle:public cShape
{
//If you won'n delcare mGetArea function here ,It will access the mGetArea function declared in cShape class.
};