What is oops?what is its use in software engineering?
No Answer is Posted For this Question
Be the First to Post Answer
1. Define a class.
how to create thread in java?
17 Answers IBM, Infosys, Wipro,
What is an advantage of polymorphism?
when to use 'mutable' keyword and when to use 'const cast' in c++
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,
What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
What is abstraction oop?
#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
#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
program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number
what is overloading