Re: overloading in C
From: Victor Bazarov (v.Abazarov_at_comAcast.net)
Date: 11/25/04
- Next message: Victor Bazarov: "Re: virtual constructor"
- Previous message: Jonathan Mcdougall: "Re: question about constants in C++"
- In reply to: uday: "overloading in C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 25 Nov 2004 02:58:24 GMT
"uday" <kariudaykiran@yahoo.co.in> wrote...
> Does C supports overloading. I am thinking no. But some people are
> saying yes. If yes how. Please answer with examples.
C does not. And why are you asking about C in a C++ newsgroup?
> Also in c++ size of empty class is one. why.
To make sure that an array of such empty class objects would have
elements sitting at distinct addresses.
> and what are the
> default methods created in a class.
A default constructor, a destructor, a copy constructor, a copy assignment
operator. Each of them except the destructor are created conditionally.
> These questions are asked in
> interviews. so please explain.
Please read a C++ book for explanations.
V
- Next message: Victor Bazarov: "Re: virtual constructor"
- Previous message: Jonathan Mcdougall: "Re: question about constants in C++"
- In reply to: uday: "overloading in C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|