How compiler selects(internally) required overridden
function in inheritance?
Answers were Sorted based on User's Feedback
Answer / deepthi
By using virtual tables,
when Compiler views virtual in a class declaration then for
each class it creats one virtual table
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / deepthi
By using virtual tables,
when Compiler views virtual in a class declaration then for
each class it creats one virtual table
Is This Answer Correct ? | 2 Yes | 0 No |
Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.
1 Answers Global Academy, Infotech,
What is oop in simple words?
What is the difference between class and structure?
what is the difference between class and structure in C++?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is an advantage of polymorphism?
how do you handle yourself when you feel the wald is aganist you
WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
What type of loop is a for loop?
What is object-oriented programming? Webopedia definition
What does sksksk mean in text slang?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort