Properly declared by which of the following specifiers can be derived? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Properly declared by which of the following specifiers can be derived?

public private protected visual studio

27th Jan 2017, 10:33 AM
Leon
Leon - avatar
10 Answers
+ 7
yes I also encountered this and I think something is wrong with this question
27th Jan 2017, 10:41 AM
Sakshi👸
Sakshi👸 - avatar
+ 6
it seems that the language of question isn't correct I don't understand what the question was asking
27th Jan 2017, 10:45 AM
Sakshi👸
Sakshi👸 - avatar
+ 6
I encountered 1 more silly question What extension c++ file must have?
27th Jan 2017, 11:12 AM
Sakshi👸
Sakshi👸 - avatar
+ 5
I also want to know the answer of another question related to virtual function because I know less about virtual function.... the question was " choose the correct option "(there can be more than 1 correct ans) 1) virtual function can be constant 2) virtual function can call non virtual function 3) non virtual function can't call virtual function please explain this if u know I never done It correct
27th Jan 2017, 10:52 AM
Sakshi👸
Sakshi👸 - avatar
+ 5
not understood exactly....but ya it was helpful thanks for the help
27th Jan 2017, 11:04 AM
Sakshi👸
Sakshi👸 - avatar
+ 5
and I didn't understand the function calling part if there is a base class with 1 non virtual function and 1 virtual function and a derived class with 1 virtual and 1 non virtual function and if object of derived is created then what will be the order of calling and why?
27th Jan 2017, 11:15 AM
Sakshi👸
Sakshi👸 - avatar
+ 3
virtual functions enable run time polymorphism. The run time must refer to a virtual table attached to an object instantiated from any class containing a virtual function, or any class derived from one containing the virtual. the virtual table stores the address of virtual functions on a per object basis. is this sufficient understanding to answer the question?
27th Jan 2017, 10:56 AM
Leon
Leon - avatar
+ 2
I'm afraid it appears that another of those, "guess the question" as well as answer types has crept through.
27th Jan 2017, 10:47 AM
Leon
Leon - avatar
+ 1
Just had this question, wanted to make you all aware. Maybe get it taken down, along with whoever wrote and approved it.. ;)
27th Jan 2017, 10:34 AM
Leon
Leon - avatar
+ 1
@Sakshi oh well, what part requires further explanation? I edited it some more now.
27th Jan 2017, 11:07 AM
Leon
Leon - avatar