What is the difference between implicit function & explicit function.
is the equation of circle is explicit function or not
A function in which the dependent variable has not been given in terms of the independent variable is known as implicit function.Ex: 2x-y = 3 A function which determines the output value in terms o...
Oop is the common abbreviation for object-oriented programming.
Answered by: shahistha
Answered On : Dec 5th, 2005OOPs is an Object Oriented Programming language,which is the extension of Procedure Oriented Programming language.OOps reduce the code of the program because of the extensive feature of Polymorphism.OOps have many properties such as DataHiding,Inheritence,Data Absraction,Data Encapsulation and many more.
OOPS provides features like polymorphism, inheritance, abstraction.
OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class. Class is a collection of the o...
in oops memory is released through garbage collection. it will check which objects are not reachable by any part of the code then it will release that object and optimize the memory location for newly created objects.
Function and method differences
What is the difference between function and method in c, objective c, and Java?
Functions have independent existence means they are defined outside of the class e.g. in C main() is a function while methods do not have independent existence they are always defined inside class e.g. main() in Java is called method.
What are the types of polymorphism ?
There are two types of polymorphism. 1. compile time polymorphism 2. Run time polymorphism Compile time polymorphism is also called as "Static polymorphism" or it is referred as "Early binding" Compil...
There are two types of polymorphism 1. Dynamic polymorphism 2. Static polymorphism The polymorphism that can be occur at run time is called dynamic polymorphism. This means that when we call the met...
It is a class which provide an interface for creating families of related objects.It encapsulate the logic which helps to decide which subclass should be instantiated and hence removes this decision f...
A Factory class is one that is used to return instances of other classes. This is generally used in the context of Factory Design Pattern.
Which languages are included in object based languages other than vb and Java script
Object-oriented languages include Simula, Smalltalk, C++, Eiffel, Python, Ruby, C# and REALbasic other than Vb and java script.
other object oriented languages are c++ & simula 67
What are 4 member function for each object in c++.
Each C++ object possesses the 4 member fns, what are those 4 member functions.Please tell me what I s the answer for this question.
Each C++ object has constructor,default constructor,copy constructor and destructor as the member functions.
Following are four default functions available for each object
1) constructor
2) destructor
3) copy constructor
4) assignment operator
How can you make a class as interface, if you cannot add any pure virtual function?
By putting a virtual destructor inside an interface makes a class an interface.
Add pure virtual destructor in that class
What is the difference between encapsulation and datahiding.Explain with example
encapsulation is the wrapping up of data members and data functions into a single unit like classes. here we can control the visibility of data with the help of access specifiers i.e. public,private and protected.
in data hiding data is totally private we cannot access the data.
encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.
Difference between object-oriented programming and procedure oriented programming
the main difference b/w pop and oops is ...
pop is based on function and oops is based on classes and objects.
POP: 1>Importance is given to the sequence of things to be done. i.e algorithms 2>Larger programs are divided into functions. 3>Mostly functions share global data i.e data move freely around the syst...
What do you mean by package access modifier?
Access modifier are used to implement encapsulation feature of oops.There are 3 access specifiers namely Private: The current class will have access to the field or method. Protected - The current cl...
What are data model and class model in object oriented approach specially in c++?
Data model is an abstract model which describes the representation and usage of data.In oops context data are modeled as units of objects and data model represents the logical organization of real wor...
How round robin algorithm works ?
In round robin algorithm time slices are assigned to each process in equal portions and in circular order, handling all processes without priority. Round-robin scheduling is simple, easy to implement,...
What is sigbus error
When a bus error occurs a signal is sent to the processor called as sigbus signal.The constant for sigbus is defined in header file signal.h.Sigbus error is thrown when there is improper memory handling.
What is the requirement of compile time overloading?
We know that because of polymorphism, we can declare any number of function with change in signature. Signature considers three parts 1. No.of parameters 2. Type of parameters 3. Order of parameters...
Method with the same name, same or different return type and difference in the parameters either in number or type
Is it possible for two classes to inherit from each other
No, it is not possible. One of the reasons is stated below.
In inheritance, if we create an object to child class, the base class constructor is by default called in derived class constructor as the first statement. Since there is cyclic dependency it will go into infinite loop.
No it is not possible. compile time error is thrown
Circular base class dependency involving 'x' and 'y'
x & y are classes derived from each other.
Can we inherit priVATe members of class ?
we cannot inherit private members of a class,but you can use friend functions to access private data
if you can declare the sub class in the base class (i.e if you make sub class as inner class in base class), you will be able to access the private members of the base class.
Differentiate patterns and framework in ooad concept
Patterns: . A common Solution to a common problem in a context.A solution to narrowly-scoped technical problem. i.e. A fragment of solution or a piece of the puzzle.... Framework: Defines the gene...
overloading is when you define two or more functions with same name and different signatures i.e number of parameters or type of parameters. overloading is resolved at compile time. it is a static or compile time binding.
Overloading is ability of one function to perform different tasks, i.e,it allows creating several methods with the same name which differ from each other in the type of the input and the output of the...