False because we can write functions in structures also..
Here is the example to illustrate the above statement..
CODE:
#include<iostream>
using namespace std;
struct person
{
int debit,salary,profit;
void sub()
{
debit=10;
salary=15;
profit=salary-debit;
cout<<profit<<endl;
}
}obj;
int main()
{
obj.sub();
obj.debit=20;
cout<<obj.debit<<endl;
return 0;
}
OUTPUT:
If you have any doubts please COMMENT..
If you understand the answer please give THUMBS UP...
The primary difference between classes and structures is that classes can have functions in them while...
fourteen C6H14O compounds, and classify them as eight primary and six secondary structures, if possible can it be show the structures and their names? Thanks!
one primary difference between c-corporation and s-corporation is that s-corporation are subject to double taxation a)true b)false
What is the difference between heterozygous and homozygous individuals? Homozygotes have one chromosome while heterozygotes have two similar chromosomes. The homozygote will express the dominant trait and the heterozygote will express the recessive trait. All of the gametes from a homozygote carry the same version of the gene while those of a heterozygote will differ. Heterozygotes carry two copies of a gene while homozygotes only carry one. When constructing a Punnett square, the symbols on the outside of the boxes...
What is the difference between the String class and the StringBuilder class in the API? Group of answer choices they are in different packages a String can only contain letters while a StringBuilder can contain any character a String is immutable and a StringBuilder is mutable there is no difference A class can directly extend many classes. Group of answer choices True False With this declaration: Student s1; What possible values can s1 hold? Group of answer choices с a...
The difference between PCR and real-time PCR is that real-time PCR: can determine the DNA lence, while standard PCR cannot. O requires primers, while standard PCR does not. can measure the amount of DNA amplified as the reaction proceeds, while standard PCR cannot. can amplify DNA a billion-fold within just a few hours, while standard PCR cannot. O uses DNA polymerase, while standard PCR does not.
QUESTION 27 The primary difference between: (1) accounting for a business combination when the subsidiary is dissolved; and (1) accounting for a business combination when the subsidiary retains its incorporation is if the subsidiary retains its incorporation, the consolidation is not formally recorded in the accounting records of the acquiring company True. False.
The primary difference between a change in supply and a change in the quantity supplied is that: Select one: O a. a change in supply is related to the supply curve, while a change in quantity supplied is related to shifts in the demand curve that shift the supply curve. O b. both a change in quantity supplied and a change in supply are movements along the supply curve, only in different directions. O c. a change in quantity supplied...
Three principal divisions of the brain Distinguishing between gyri and sulci Primary functions associated with the five cerebral lobes Frontal lobe Parietal lobe Temporal lobe Occipital lobe insula List of the ventricles of the brain Source of CSF Description of the Blood-CSF barrier - what is its importance? Value of circumventricular organs Functions of the following parts of brain Medulla oblongata Pons Midbrain cerebellum Functions of Thalamus Epithalamus Hypothalamus Regions of cerebrum and their primary functions What is the reticular...
Abstract classes and Interfaces problems 10. Explain one similarity and one difference between abstract classes and interfaces. 11. Consider the following declarations. public interface Shape{ int someFunction(Shape other); //other functions not shown } public class Square implements Shape {/*implementation not shown*/} Which of the following function headings of someFunction must be added to the declaration of the Square class such that it will satisfy the Shape interface? public int someFunction (Shape other) public int someFunction (Square other) public boolean someFunction(Object...
A difference between spermatogenesis and oohenesis is Question 11 1 pts A difference between spermatogenesis and oogenesis is each primary spermatocyte produces 4 gametes while each primary oocyte produces one gamete. O spermatogenesis uses the process of meiosis and oogenesis uses the process of mitosis. O oogenesis is completed prior to fertilization and spermatogenesis is completed after fertilization. oogenesis continues from puberty until death while spermatogenesis occurs from birth until death.