[title]Family quotes[/title] [description]Welcome to our family quotes section! Here you'll find some of the funniest (and wisest) quotes on the subject of family life![/description]
Learn English and meet people on the world’s largest EFL social network

We have partnered with TradePub to bring you free industry magazines and resources - no coupons or credit cards required!

Visit: englishforums.tradepub.com


1 2
Share this topic:
bvpraveen  +  104992 Thu, 02 Jun 05 03:54 PM
Dear Praveen,

Pure virtual functions are used to create Abstract classes - class in which objects can't be created and act as only a 'prototype', which is used as a base class.

Another main use of PVF is to 'force' the derived class to define its own function definition. The pure virtual function can have statements too!, in which case the derived class can call the base class' function with the use of scope resolution (::).

Eg: The base class Shape contains all the 'basic function' with some common code. The derived classes - rectange - can overload to define its own funtion.

class shape
{
virtual void print(void) =0 // =0 means it is a pure virtual function
{
cout }
};

class rectange : public shape
{

float length,breadth;

rectangle()
{
length=10;
breadth=20;
}

void print(void)
{
shape::print();
cout cout }
};

void main(void)
{
shape s; // Error
rectange r; // Fine!

r.print();
}

OUTPUT:

Base class
Derived class
10 20
Joined on Sat, Mar 5 2005
Coimbatore, India
Regular Member 507
Please feel free to correct my grammatical mistakes.
hemantchavan  +  122594 Sat, 30 Jul 05 10:24 AM

This link could be of some help - there are many other links to C++ programming

www.planet-source-code.com

 

Joined on Thu, Mar 10 2005
New Member 28
bvpraveen, 4 yr 99 days ago
Google it and you will land in a sea of links.
Anonymous, 3 yr 335 days ago

Hello,

      Before start coding firstly you you understood object, method, class and other Which are related with the C++.

 

Thanks:

hytechpro

Anonymous, 3 yr 335 days ago

Hello,

     C++ is not different as C.Then before start coding firstly you you understood object, method, class and other Which are related with the Program.

Thanks:

hytechpro

rishonly  +  177875 Mon, 02 Jan 06 06:55 AM

Hello,

I would suggest to first learn the major OOP concepts,  like  Inheritance, Polimorphism and others.

Joined on Sat, Mar 5 2005
KUMBAKONAM,INDIA
Contributing Member 1,782
Regards, Krishna
Ivantalk  +  184864 Tue, 17 Jan 06 05:35 PM

Which kind of C++ do you like to learn?

According to my experience, there're 3 kind of C language: Borland C, VC,Turbo C. And I believe it firmly that there's not only one kind of C++. Different developmet environments make the different syntax and standards

Joined on Tue, Jan 17 2006
QuanZhou, Fujian Province, China
New Member 33
Have your heard of HuaQiao University? I can tell you that it's my university.
1 2
© MediaCet Ltd. 2009, v5.0.3615.39139. All content posted by our users is a contribution to the public domain, this does not include imported usenet posts.*
For web related enquires please contact us on webmaster@mediacet.com, status updates are available at status.mediacet.com.
*Usenet post removal: Use 'X-No-Archive'. You may not have understood that your posts would end up in the public domain. Please send proof of the poster's email, we will remove immediately.