what is oop?
Answers were Sorted based on User's Feedback
Answer / ravi
Object Oriented Programming Language aka OOP's language, whose basic concept and hirecarry revolve around considering code snippets as real objects of world. It's better than procedural programming language, with strongly typed language.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / maulik
A type of programming in which programmers define not only
the data type of a data structure, but also the types of
operations (functions) that can be applied to the data
structure. In this way, the data structure becomes an object
that includes both data and functions. In addition,
programmers can create relationships between one object and
another. For example, objects can inheritcharacteristics
from other objects.
One of the principal advantages of object-oriented
programming techniques over procedural programming
techniques is that they enable programmers to create modules
that do not need to be changed when a new type of object is
added. A programmer can simply create a new object that
inherits many of its featuresfrom existing objects. This
makes object-oriented programs easier to modify.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ram
obeject oriented program.
in c only supports structured program. but latest languages c++ and java supports oops.
the data of c program is easily modified by any function in the program.
but in c++/java the data is wrapped to particular functions. so the data only modified by with in the class.
oops have features of
1)encapsulation. wrapping data.
2)inheritance. reusability of code.
3)abstraction.
4)polymorphism.
5)exception handling
| Is This Answer Correct ? | 0 Yes | 0 No |
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
write the function. if all the character in string B appear in string A, return true, otherwise return false.
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer
write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"
Display the time of the system and display the right time of the other country
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }