C++ Language

C++ Language

+ Follow 4,202 Followers

Share

Showing 26 to 50 of 87
Sort By: 
M

My 27/04/2016 in  C++ Language classes

How do you specify a custom attribute for the entire assembly (rather than for a class)?

1 0

Flair replied | 29/05/2016

You can apply AttributeUsageAttribute with AttributeTargets as Assembly for your custom attribute implementation. E.g.

[AttributeUsage(AttributeTargets::Assembly)]
public ref class MyCustomAttribute : Attribute {
//....
}

0 0

Ganesa replied | 31/05/2016

create those variables as global variables in header file

0 0

Answer

You can add upto 6 Images

A

Asif 27/04/2016 in  C++ Language classes

Different types of languages compare in c++ and other languages Oops concepts in other language oops

0 0 4

Show previous answers

Muralikrishna Kambala replied | 21/05/2016

Java

0 0

Manoj Kumar replied | 23/05/2016

Object-oriented programming (OOP) is a programming language model ... to manipulate and how they relate to each other, an exercise often known as data modeling. ... concept of the "ideal" chair that stands for all chairs) which defines the kind of ... and Eiffel are also examples of object-oriented programming languages.

0 0

Answer

You can add upto 6 Images

T

Thamaraikannan 27/04/2016 in  C++ Language classes

What are inner class and anonymous class?

0 0

Manoj Kumar replied | 23/05/2016

Nested Classes. In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class.

0 0

Gaurav replied | 23/05/2016

A class is said to be an inner class (called Nested Class) if it is defined inside of any class.
Anonymous class is a class without any name i.e class is declared without an identifier. In other words, we can say, Anonymous class is a class which has no name given to it.

0 0

Answer

You can add upto 6 Images

N

Nandhini 27/04/2016 in  C++ Language classes

Define parameter by value?

0 0

Subrat replied | 28/04/2016

In parameter by value, the actual parameters' value are copied to formal parameters. Thus the value of actual parameters are not affected.
Actual parameter: parameter that we provide during calling function.
Formal parameter: parameter that is present in the called function.

0 0

Unais Kamle replied | 14/06/2016

There are two methods of passing parameter to a function:
1. Pass by value
2. Pass by reference

In method 1, viz., passing parameter by value, if the value of the parameter is changed anywhere else after passing to a function, it doesn't affect the value passed in the function.
Contrary to this, if we pass parameter by reference to a function, then whenever...  more»
There are two methods of passing parameter to a function:
1. Pass by value
2. Pass by reference

In method 1, viz., passing parameter by value, if the value of the parameter is changed anywhere else after passing to a function, it doesn't affect the value passed in the function.
Contrary to this, if we pass parameter by reference to a function, then whenever this value is changed anywhere in the code, the same is changed in the function as well, and vice versa. «less

0 0

Answer

You can add upto 6 Images

S

Subhasish 27/04/2016 in  C++ Language classes

What do you meant by static and dynamic modelling?

0 0

Subrat replied | 27/04/2016

Static modelling means the structure that is present from beginning and does not change with time. It is like class and its relationship. UML static diagrams: Class diagram, Object diagram, Use Case diagram.

Dynamic modelling represent object communication during runtime and can change over time. UML dynamic diagrams: Sequence diagram, Activity diagram, Collaboration diagram.

0 0

Satya replied | 28/04/2016

Static modeling is used to specify structure of the
objects that exist in the problem domain. These are
expressed using class, object and usecasediagrams.

Dynamic modeling refers representing the object
interactions during runtime. It is represented by sequence,
activity, collaboration and statechart diagrams

0 0

Answer

You can add upto 6 Images

T

Test 26/04/2016 in  C++ Language classes

From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

1 0

Gaurav Aggarwal replied | 09/06/2016

As i have understand your question, in extending an interface you should have to give separate definition for each class, may the name is same.

0 0

Ranganath replied | 27/06/2016

When you extend an interface, you'll again get an interface, which is not a definition (Not an implementation of your interface). So, again, one need to provide a definition (class) for your interface.

whereas, by extending a class, you'll get a class.

Hope you understand.

0 0

Answer

You can add upto 6 Images

S

Shafer 26/04/2016 in  C++ Language classes

what are the differences between c and c++.what are the advantages the are only in c++ but not in c

0 0 3

Show previous answers

Malika replied | 21/05/2016

Main difference between C & C++ is that C++ based on OOPS Concept .Virtual Functions are present in C++ & not in C. Top down Approach is used in C & Bottom Up approach is used in C++. C++ comes from C but with additional features.

0 0

Gourav replied | 25/05/2016

Main diff is c is procedural and c++ is object oriented

0 0

Answer

You can add upto 6 Images

S

Sridevi 26/04/2016 in  C++ Language classes

What is memory leaking in c++?

0 0 3

Show previous answers

Swapnil replied | 07/06/2016

When a piece of memory that was previously allocated is not properly deallocated the memory leak happens. Even though that memory is not in use by the program, it is still “reserved”, and can not be used by the program till it is correctly deallocated.

0 0

Iiht Team replied | 02/07/2016

A memory leak occurs when a piece (or pieces) of memory that was previously allocated by a programmer is not properly deallocated by the programmer.

0 0

Answer

You can add upto 6 Images

N

Nishat 26/04/2016 in  C++ Language classes

I am a new computer engineering student can you please explain what is c++ and its uses please answer me this question as faster as you can?

0 0 3

Show previous answers

Ethan's Tech replied | 26/04/2016

C++ is the programing language similar as C but have object oriented features. It is very fast in performance aND in many companies as high level programing language.

0 0

Heba replied | 27/04/2016

C++ is an object oriented programming language.C++ is a very powerful language with which you can do a whole lot of things. Talking about it's applications, C++ is used for developing OS, web browsers ( like Internet explorer, Chrome), productivity softwares ( like microsoft office, maya 3D), Console games (PlayStation series), many IOS apps, development environments and compilers...  more»
C++ is an object oriented programming language.C++ is a very powerful language with which you can do a whole lot of things. Talking about it's applications, C++ is used for developing OS, web browsers ( like Internet explorer, Chrome), productivity softwares ( like microsoft office, maya 3D), Console games (PlayStation series), many IOS apps, development environments and compilers ( like Visual Studio, My SQL server) and many more. «less

0 0

Answer

You can add upto 6 Images

H

Harish 26/04/2016 in  C++ Language classes

What are the major differences between C, C++, and JAVA?

0 0

Ansari replied | 27/04/2016

C is procedure oriented . you cannot use classes and objects
C++ is object oriented but still you can write code without using oop's concept
Java is also object oriented but you can't wirte code without class and object. It is simple than C++ and C.

Java doesn't have pointers and operator overloading and other tedious concepts.

0 0

Iiht Team replied | 27/05/2016

C is a procedure language, C++ object oriented language, Java is a Pure OOPs.

0 0

Answer

You can add upto 6 Images

S

Sumitha 25/04/2016 in  C++ Language classes

What is a class?

0 0

Anshul replied | 25/04/2016

In object-oriented programming , a class is a template definition of the method s and variable s in a particular kind of object . Thus, an object is a specific instance of a class; it contains real values instead of variables. The class is one of the defining ideas of object ...

0 0

Chinali replied | 25/04/2016

A class in C++ is a user defined type or data structure declared with keyword class that has data and functions (also called methods) as its members whose access is governed by the three access specifiers private, protected or public (by default access to members of a class is private).................If any further quires feel free to visit :- B 25 lohiya colony opp tammana tower vaishali nagar

0 0

Answer

You can add upto 6 Images

G

Gaurav 25/04/2016 in  C++ Language classes

What is the difference between Object and Instance?

0 0

Ansari replied | 12/05/2016

Object is an instance of a class. instance means a model or sample.

0 0

Gourav replied | 10/06/2016

An object of a class is an instance..which means that it has the knowledge of all the variables and functions declared within the class .. whereas an instance does not need to be an object.. there are many examples of such..

0 0

Answer

You can add upto 6 Images

V

Vinodha 25/04/2016 in  C++ Language classes

Write a short code using C++ to print out all odd number from 1 to 100 using a for loop

0 0
A

Arun replied | 25/04/2016

for(i=1;i<=100;i+=2)
{
cout<}

0 0

Heba replied | 27/04/2016

int main()
{
int i;
cout<< "All odd number between 1 to 100 ";
for(i=1;i<=100;i=i+2)
{
cout<}
return 0;
}


OR

int main()
{
int i;
cout<<"All odd number between 1 to 100";
for(i=1;i<=100;i++)
{
if(i%2==0)
continue;
else
cout<}
return 0;
}

0 0

Answer

You can add upto 6 Images

M

Mahesh 25/04/2016 in  C++ Language classes

Define access specifier with reference to class?

0 0
A

Arun replied | 25/04/2016

Each class has member variables to hold data . The class should specify who could access those data. In order to specify that, C++ provides access specifiers.
3 Access Specifiers are available in C++. They are, Public - Private - Protected.
Public - If you want your Data to be accessed by anyone.
Private - If you want your Data to be accessed only by the own class.
Protected...  more»
Each class has member variables to hold data . The class should specify who could access those data. In order to specify that, C++ provides access specifiers.
3 Access Specifiers are available in C++. They are, Public - Private - Protected.
Public - If you want your Data to be accessed by anyone.
Private - If you want your Data to be accessed only by the own class.
Protected - If you want your Data to be accessed by the class and its derived class. «less

0 0

Unais Kamle replied | 14/06/2016

Access specifiers with respect to class:

public
The type or member can be accessed by any other code in the same assembly or another assembly that references it.
private
The type or member can be accessed only by code in the same class or struct.
protected
The type or member can be accessed only by code in the same class or struct, or in a class...  more»
Access specifiers with respect to class:

public
The type or member can be accessed by any other code in the same assembly or another assembly that references it.
private
The type or member can be accessed only by code in the same class or struct.
protected
The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.
internal
The type or member can be accessed by any code in the same assembly, but not from another assembly. «less

0 0

Answer

You can add upto 6 Images

S

Shaun 25/04/2016 in  C++ Language classes

Why generalization is very strong?

0 0

Ethan's Tech replied | 25/04/2016

Even though Generalization satisfies Structural, Interface, Behavior properties. It is mathematically very strong, as it is Anti symmetric and Transitive. Anti symmetric: employee is a person, but not all persons are employees. Mathematically all As? are B, but all Bs? not A.

0 0

Ashish replied | 28/06/2016

Generalization satisfies Structural, Interface, Behaviour properties. It is very strong, because it is antisymmetric as well as transitive.
Antisymmetric: Employee is a person, but not all persons are employees. Mathematically all As? are B, but all Bs? not A.

0 0

Answer

You can add upto 6 Images

D

Damanpreet 24/04/2016 in  C++ Language classes

Show previous answers

Gaurav replied | 23/05/2016

Before defining the object, i would like you to remind the built in data types (int, float, char etc) and user defined data types (Struc, Union, Class etc). To identify any data types, we declare variable (Variable is an identifier).
For ex- Int x, y; Float a, b; this x and y or and b identify or point out the "type of data or characteristics of data" stored in it. In similar...  more»
Before defining the object, i would like you to remind the built in data types (int, float, char etc) and user defined data types (Struc, Union, Class etc). To identify any data types, we declare variable (Variable is an identifier).
For ex- Int x, y; Float a, b; this x and y or and b identify or point out the "type of data or characteristics of data" stored in it. In similar way, object is another variable of type Class which can represent any real world entity or its attribute.
For example, Apple, Orange, Banana all comes under one category Fruit. It has many attribute like color, size, taste etc. To simplify the representation of fruits, we defines user built data type called
Class.
Declaration:
Class Fruit
{
String color, taste; / /These are the properties of fruit.
float price, amount;
}

Object declaration // In similar way of user defined data type like Int a, b;

Fruit apple, orange, banana; // these are the variables/instances of fruit. «less

0 0

Unais Kamle replied | 17/06/2016

An object is simply an instance of a class.

0 0

Answer

You can add upto 6 Images

S

S.meenakshi 24/04/2016 in  C++ Language classes

What is an enumerator?

1 0

Anshul replied | 24/04/2016

Enumerations, think Enum, are a way to define a choice of options. Before Enums the following code was normal.

Dim QUEEN as Integer = 12
Dim KING as Integer = 13
Dim ACE as Integer = 14

Dim card as Integer = 13

Then you could use an IF statement like this

If card = KING then .... and so on....

0 0

Ranganath replied | 27/06/2016

Meenakshi,

Good question.

In programming, an enumerated type (or, enumeration, or enum) is a data type consisting of a set of named values called elements, members, enumeral, or enumerators of the type.

0 0

Answer

You can add upto 6 Images

V

Vivek 24/04/2016 in  C++ Language classes

What are the differences between c and c++? If possible give more points. What are the disadvantages of C++?

0 0
A

Arun replied | 24/04/2016

C is a Procedural Programming Language - C++ is an Object Oriented Programming Language
Provides Functional Abstraction - Provides Data Abstraction

C++ was developed as an advanced version of C so it has many new concepts and techniques like class, Inheritance and Polymorphism.

Disadvantages of C++ is it is not completely Object Oriented. So there are...  more»
C is a Procedural Programming Language - C++ is an Object Oriented Programming Language
Provides Functional Abstraction - Provides Data Abstraction

C++ was developed as an advanced version of C so it has many new concepts and techniques like class, Inheritance and Polymorphism.

Disadvantages of C++ is it is not completely Object Oriented. So there are some mechanisms to break the Object Oriented behaviour of the code.
It supports pointers, multiple inheritance and operator overloading which was found to affect the efficiency of code and hence removed by Java.
Also C++ was developed in 16-bit OS Environment and it have been enhanced later. But now it is not used to develop any application for the current 64-bit OS Environment. It is mostly used for System level tasks. «less

0 0

Anshul replied | 24/04/2016

C++ is derived from C Language. It is a Superset of C.
Earlier C++ was known as C with classes.
In C++, the major change was the addition of classes and a mechanism for inheriting class objects into other classes.
Most C Programs can be compiled in C++ compiler.
C++ expressions are the same as C expressions.
All C operators are valid in C++.

0 0

Answer

You can add upto 6 Images

Y

Yashraj 24/04/2016 in  C++ Language classes

What is encapsulation?

0 0

Anshul replied | 24/04/2016

Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding.

0 0

Unais Kamle replied | 17/06/2016

Encapsulation in Object Oriented Programming (OOPS) is referred to as a concept that binds the data and functions together and keeps them safe from the outside world (that is, other classes and interfaces).

0 0

Answer

You can add upto 6 Images

T

Thinagaran 24/04/2016 in  C++ Language classes

Why c++ is called as object-oriented language? Here what does object mean?

0 0

Amitava replied | 17/05/2016

Because c++ use the whole concept of oops.and other important thing is that c++ use object programming language. which makes it close to real world.Thats why c++ is object oriented language.
Object Oriented Programming Concepts are:
1.class
2.object
3.Data Abstraction
4.Encapsulation
5.Polymorphism
6.Inheritnace
7.Message Communication
Object:-
This...  more»
Because c++ use the whole concept of oops.and other important thing is that c++ use object programming language. which makes it close to real world.Thats why c++ is object oriented language.
Object Oriented Programming Concepts are:
1.class
2.object
3.Data Abstraction
4.Encapsulation
5.Polymorphism
6.Inheritnace
7.Message Communication
Object:-
This is the basic unit of object oriented programming. That is both data and function that operate on data are bundled as a unit called as object. «less

0 0
S

Sudarshan replied | 25/05/2016

C++ is called as Object-oriented language. In C++ a program consists of objects. Object is a software module
which combines both data and code together in a single unit. Each object represents a part of program performing
specific task. Unlike functions which can only execute code, an object can store data, execute operations on data
using member functions and keep...  more»
C++ is called as Object-oriented language. In C++ a program consists of objects. Object is a software module
which combines both data and code together in a single unit. Each object represents a part of program performing
specific task. Unlike functions which can only execute code, an object can store data, execute operations on data
using member functions and keep the data alive during the execution of program. «less

0 0

Answer

You can add upto 6 Images

T

Test 23/04/2016 in  C++ Language classes

What is the difference between c&c++?

0 0 3

Show previous answers

Raju replied | 23/04/2016

c++ is a super set of c OR c++ is an incremented version of c

0 0

Pankaj Gupta replied | 23/04/2016

c is a subset of c++ language. c++ has object oriented features and c doesnt. this makes c++ more powerful than c

0 0

Answer

You can add upto 6 Images

A

Anish 23/04/2016 in  C++ Language classes

What is the return value for getch()?

0 0

Shibaji replied | 23/04/2016

It's return blank space.

0 0

Anshul replied | 23/04/2016

The Return value of getch as boolean value.that is True/false.The getch is get the char means it return value as True otherwise it False.

0 0

Answer

You can add upto 6 Images

A

Ajay 23/04/2016 in  C++ Language classes

What is the definition of abstract class and virtual function?

0 0

Anshul replied | 23/04/2016

Abstract Class is a class which contains atleast one Pure Virtual function in it. Abstract classes are used to provide an Interface for its sub classes. Classes inheriting an Abstract Class must provide definition to the pure virtual function, otherwise they will also become abstract class.

Pure virtual Functions are virtual functions with no definition. They start with...  more»
Abstract Class is a class which contains atleast one Pure Virtual function in it. Abstract classes are used to provide an Interface for its sub classes. Classes inheriting an Abstract Class must provide definition to the pure virtual function, otherwise they will also become abstract class.

Pure virtual Functions are virtual functions with no definition. They start with virtual keyword and ends with = 0. Here is the syntax for a pure virtual function «less

0 0

Vinay replied | 01/07/2016

Abstract Class is a class which contains atleast one Pure Virtual function in it. Abstract classes are used to provide an Interface for its sub classes. Classes inheriting an Abstract Class must provide definition to the pure virtual function, otherwise they will also become abstract class.

Virtual Function is a function in base class, which is overrided in the derived...  more»
Abstract Class is a class which contains atleast one Pure Virtual function in it. Abstract classes are used to provide an Interface for its sub classes. Classes inheriting an Abstract Class must provide definition to the pure virtual function, otherwise they will also become abstract class.

Virtual Function is a function in base class, which is overrided in the derived class, and which tells the compiler to perform Late Binding on this function. «less

0 0

Answer

You can add upto 6 Images

N

Neha 23/04/2016 in  C++ Language classes

Why can't one make an object of abstract class? Give compiler view of statement

0 0

Anshul replied | 23/04/2016

The purpose of an abstract class is that it cannot be instantiate... thus your question does not make any sense. It is like asking why we cannot open a locked door

0 0
A

Arun replied | 24/04/2016

A Class can become abstract class in C++, if it contains a Pure Virtual Function in it.
A pure virtual function is one which is not defined inside the class. The class that inherits should override it.
Now if i create an abstract class and if i call the virtual function declared inside it knowingly or unknowingly , the compiler could'nt do anything as it is not provided...  more»
A Class can become abstract class in C++, if it contains a Pure Virtual Function in it.
A pure virtual function is one which is not defined inside the class. The class that inherits should override it.
Now if i create an abstract class and if i call the virtual function declared inside it knowingly or unknowingly , the compiler could'nt do anything as it is not provided with the definition.
So to prevent this, one cant instantiate abstract class.
Hope this answers your question ... «less

0 0

Answer

You can add upto 6 Images

A

Annu 23/04/2016 in  C++ Language classes

What are the things contains in .obj file? ( compiled result of .cpp file )

0 0

Anshul replied | 23/04/2016

C++ .obj file holds code and data suitable for linking with other object files to create an executable or a shared object file.

0 0

Raman replied | 28/06/2016

Object file contains low level instructions which can be understood by the CPU. That is why it is also called machine code.

0 0

Answer

You can add upto 6 Images

Previous1234Next

Have a Question?

Thousands of expert tutors are available to answer your question

Looking for C++ Language classes?

Find best C++ Language classes in your locality on UrbanPro.

FIND NOW

Do you offer C++ Language classes?

Create Free Profile Now »

Top Contributors

Algorithm Class

26 Answers

Umasankar

24 Answers

Shibaji

21 Answers

G Venkat

19 Answers

Rajamohan

17 Answers

Satya

17 Answers

Anshul

13 Answers

Manoj Kumar

13 Answers

Gyanendra

12 Answers

Sponsored

About UrbanPro

UrbanPro.com helps you to connect with the best C++ Language classes in India. Post Your Requirement today and get connected.

Find Best C++ Language classes?

Find Now »