i'm writing a News class and their subclasses but i have a problem with that function.it tells me that function(virtual string ToFileFormat() ) must convert the news to a string that holds the file format of that news.(File format of each news are given after the class definition)And this function is a virtual function and in every sub-classes i must implement them and in abstracted class of course.is there any const. implementetion for these functions.Basicly i didnt understand its sense.i haven't got any time to finish that program but i cant going on.can anyone tell me about that function.Basicly, what it is doing and how it seems like.thank you...
c++34
0
Newbie Poster
Recommended Answers
Jump to PostThat's not a standard function, and I haven't ever seen it before. What library is it from?
Jump to PostIs ToFileFormat() a function you wrote? If so, I can't tell you anything about it without seeing your code. As it is, I can only guess about what it's supposed to do, much less how it does it and why your derived classes don't like it. ;)
All 6 Replies
Ravalon
62
Posting Whiz in Training
c++34
0
Newbie Poster
Ravalon
62
Posting Whiz in Training
c++34
0
Newbie Poster
Ravalon
62
Posting Whiz in Training
John A
1,896
Vampirical Lurker
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.